分类目录归档:Linux

树莓派2Raspberry Pi2显示器分辨率设置

刚开始玩树莓派,开始搞了半天没有显示内容,后俩知道了修改 config.txt 配置,将 hdmi_safe=1加上了,有显示了,结果只有640x480的分辨率。

经过苦苦搜索发现了一个配置: hdmi_ignore_edid=0xa5000080 将edid检测干掉就ok了。分辨率终于可以设置。

现在公布下哥的config文件:

# For more options and information see 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=0

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
overscan_left=10
overscan_right=10
overscan_top=10
overscan_bottom=10

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=1024

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=35
hdmi_ignore_edid=0xa5000080 

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

start_x=1

希望能帮到大家。

mac svn1.8.10客户端 提交svn代码报错

由于公司的svn服务器版本不兼容最新的svn 1.8.10导致 提交代码报错

svn: E120105: Commit failed (details follow):
svn: E120105: Error running context: The server sent an improper HTTP response

只能降级svn客户端版本到1.7。然后重新checkout代码

 

 

linux curl命令超时设置

curl post提交数据如果遇到超时未响应的请求会导致cpu一直飙升,最好设置一个超时时间

curl --connect-timeout 10 -m 20

 

connection-timetou :连接时间超时这是10s,

-m/max-time 请求总时间 超时20ms将报错