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 |