由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 请问一个HDMI连电视的问题
相关主题
问一个简单的问题vnc problem
各位用linux的时候接投影仪我有点崩溃- 怎么disable screensaver
[已解决]ubuntu进不去X,花屏,ati集显linux系统transfer
玩不转DEBIAN,开贴求助udev安全漏洞,快
江湖救急,udev不能自动mount外置U盘怎么自动mount一个USB设备?
KDE 虽说有 bug,毕竟还算是跟上潮流的 UI不知道是不是老Build a Six-headed, Six-user Linux System
【求助】udev无法自动mount任何USB盘看来这个10.4 问题多多,我还是要坚持住不要升级。
再问个关于nas的问题3-way rsync automation
相关话题的讨论汇总
话题: 00话题: endsection话题: identifier话题: section话题: 1920x1080
进入Linux版参与讨论
1 (共1页)
z********0
发帖数: 9013
1
如果先开电视,再开电脑,能进入Xwindow (XBMC),分辨率1080P
如果先开了电脑,过会在开电视,就出不来X window了
CPU是I3,带GPU的,系统是Arch,驱动应该是Intel i950
dmesg最后显示:
[ 1832.089894] Raw EDID:
[ 1832.089899] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089900] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089902] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089903] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089904] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089906] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089907] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089908] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1832.089911] i915 0000:00:02.0: HDMI-A-2: EDID block 0 invalid.
现在有点摸不着头脑。请大牛指点。。。
z********0
发帖数: 9013
2
xorg.conf.d下的文件
Section "Monitor"
Identifier "MyTV"
Modeline "1920x1080" 148.50 1920 2008 2052 2200 1080 1082 1087 1125 +
hsync +vsync
Option "PreferredMode" "1920x1080"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
Option "AccelMethod" "sna"
EndSection
Section "Modes"
Identifier "Modes[0]"
Modeline "1920x1080" 148.50 1920 2008 2052 2200 1080 1082 1087 1125 +
hsync +vsync
#Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -
hsync +vsync
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "MyTV"
EndSection
z********0
发帖数: 9013
3
后开电视的话,貌似系统是检测到了
cat /sys/class/drm/card0-HDMI-A-2/status
connected
电视右下角显示1024x768,不知为何不是1080
z********0
发帖数: 9013
4
udevadm 能检测到开电视event
UDEV [3167.291992] change /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
ACTION=change
DEVNAME=/dev/dri/card0
DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card0
DEVTYPE=drm_minor
HOTPLUG=1
ID_FOR_SEAT=drm-pci-0000_00_02_0
ID_PATH=pci-0000:00:02.0
ID_PATH_TAG=pci-0000_00_02_0
MAJOR=226
MINOR=0
SEQNUM=1879
SUBSYSTEM=drm
TAGS=:seat:uaccess:udev-acl:
USEC_INITIALIZED=62
莫非我需要写个钩子脚本,调用xrandr?
z********0
发帖数: 9013
5
郁闷了,我在UDEV的Hook里调用xrandr, 发现xrander返回:can't open display
cat monitor-hotplug.rules
KERNEL=="card0", RUN+="/myconfigs/hotplug_tv.sh"
cat hotplug_tv.sh
#!/bin/bash
d=`date`
log=/myconfigs/a.log
echo "$d: TV connected" > $log
sleep 20
/usr/bin/xrandr --output HDMI2 --mode 1920x1080
/usr/bin/xrandr >> $log
echo "xrandr output $?" >> $log
1 (共1页)
进入Linux版参与讨论
相关主题
3-way rsync automation江湖救急,udev不能自动mount外置U盘
问个文件系统的问题KDE 虽说有 bug,毕竟还算是跟上潮流的 UI
macbook pro改ubuntu 10.04【求助】udev无法自动mount任何USB盘
硬盘空间问题再问个关于nas的问题
问一个简单的问题vnc problem
各位用linux的时候接投影仪我有点崩溃- 怎么disable screensaver
[已解决]ubuntu进不去X,花屏,ati集显linux系统transfer
玩不转DEBIAN,开贴求助udev安全漏洞,快
相关话题的讨论汇总
话题: 00话题: endsection话题: identifier话题: section话题: 1920x1080