小编lab*_*ito的帖子

xrandr 命令未在从 udev 规则调用的 shell 命令中执行

我拥有一个带有 UltraBase(扩展坞)的 Thinkpad。我的操作系统是 Ubuntu 10.10。现在,我想通过正确设置外部显示器的分辨率来对“对接”事件做出反应。这是我已经做过的事情:

$ udevadm info -a -p /sys/devices/platform/dock.0

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/platform/dock.0':
  KERNEL=="dock.0"
  SUBSYSTEM=="platform"
  DRIVER==""
  ATTR{modalias}=="platform:dock"
  ATTR{docked}=="0"
  ATTR{flags}=="16"
  ATTR{uid}=="0"
  ATTR{type}=="dock_station"

looking at …
Run Code Online (Sandbox Code Playgroud)

ubuntu udev xrandr

6
推荐指数
1
解决办法
6018
查看次数

标签 统计

ubuntu ×1

udev ×1

xrandr ×1