我用linux吧 关注:6贴子:116
  • 2回复贴,共1

raspberry pi 3B使用

只看楼主收藏回复

HDMI to VGA, edit config.txt
# 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=1
# 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=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
## overscan.
framebuffer_width=1024
framebuffer_height=768
## uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
## uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=16
# 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
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
gpu_mem=128
# open /etc/rc.local, add before "exit 0":
# /etc/init.d/ssh start


IP属地:广东1楼2017-02-12 23:55回复
    要想永久禁用树莓派休眠,我们可以在/etc/profile.d路径下新建一个file,
    如sudo nano /etc/profile.d/Screen.sh,要加运行权限sudo chmod +x Screen.sh
    xset dpms 0 0 0
    xsets off
    ================
    linux机器运行一个监控程序,需要显示器一直亮着,不能黑屏,不能进入省电模式。
    系统中没有安装gnome的电源管理程序,也没有安装屏幕保护程序。使用如下办法都无效:
    设置bios
    修改启动参数acpi=off,noapic
    安装gnome-power-manager,设置从不黑屏
    修改xorg.conf的DPMS选项和NoPM选项
    修改nv的驱动参数
    最后用xset来设置。
    有以下问题将dmps的时间设置为10分钟以内的时间值,屏幕均可以到时自动黑屏,设置大于10分钟后,空闲时间一到10分钟就黑屏,很偶然的使用xset -q查看除dpms之外的其它参数时,发现了一个screensave的值为600。原来dpms和屏保是互相作用的,这两个值谁设的小谁生效。
    使用xset -q查看x的设置,可以看到屏保的时间是600秒,难怪dpms的值只对小于10分钟的时间有效
    总结如下:
    可以使用xset命令设置各项:
    xset s 300 #设置屏保时间为300秒,时间单位为秒
    xset s 0 #关闭屏幕保护
    xset dpms 600 900 1200 # 三个数值分别为Standby、Suspend、Off,单位秒
    xset -dpms #关闭电源管理
    也可以编辑xorg.conf
    ServerLayerOut字段中添加如下几行:
    Option "BlankTime" "5" #注意这里的时间值为分钟
    Option "StandbyTime" "10"
    Option "SuspendTime" "15"
    Option "OffTime" "20"
    时间值设置成0 就是关闭该项, 效果都是一样的。
    可以使用xset -q 查看设置情况。
    xset b 0 可以关闭X下的铃声
    xset b off都是一样的
    ----------------------------------------------
    请一定要注意:X的屏幕保护和gnome的屏幕保护是不一样的,X的电源管理和gnome的电源管理也是不一样的。即使你的gnome桌面环境不安装屏幕保护程序,X的屏幕保护也会起作用(黑屏!),


    IP属地:广东2楼2017-02-13 15:55
    回复
      如何让树莓派默认启动进入图形界面
      进入到了Raspbian操作系统的命令行界面,
      以默认的用户名和密码登录.Raspbian的默认用户是pi,默认密码应该是raspberry。
      当你登录后,运行下面的命令:
      sudo raspi-config
      查找启动选项,更改图形界面还是命令行。


      IP属地:广东3楼2017-02-13 16:55
      回复