当我将其置于睡眠模式时,我的计算机表现得很奇怪。尽管我禁用了/proc/acpi/wakeup
. 在醒来和睡觉后一段时间后,它会睡觉,但会开始发热,好像有什么资源密集型程序正在运行一样。我正在使用 Debian Stretch,计算机是 2013 年中期的 Macbook Air。
如何在睡眠前和睡眠期间检查我的计算机在做什么?也许这将有助于确定问题的根源。
我需要我的显卡驱动程序支持 OpenGL 4.5,据我所知 Mesa 实际上能够运行它。
glxinfo
给了我这个:
$ glxinfo | grep "OpenGL"
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 13.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
所以这意味着它只能运行 OpenGL 3.0。所以我尝试更新它,但我遇到了几个问题:
如果我尝试通过 更新它apt
,即sudo apt-get upgrade libgl1-mesa-dri -t testing
,它已损坏:
$ sudo apt-get upgrade libgl1-mesa-dri -t testing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libsnmp30 : Depends: libsensors4 (>= 1:3.0.0) but it is not going to be installed
mesa-va-drivers : Depends: libsensors4 (>= 1:3.0.0) but it is not going to be installed
mesa-va-drivers:i386 : Depends: libsensors4:i386 (>= 1:3.0.0) but it is not going to be installed
E: Broken packages
好的,但是:
$ apt-cache policy libsensors4
libsensors4:
Installed: 1:3.4.0-4
Candidate: 1:3.4.0-4
Version table:
*** 1:3.4.0-4 900
900 http://ftp.ru.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
所以它取决于lib版本> = 1:3.0.0,但我有版本1:3.4.0-4,这真的很奇怪。
一般来说,我不明白我应该如何升级 Mesa。如果使用apt
,我不知道应该更新哪些软件包。如果来自源,我不知道它将如何交互apt
以及它是否不会被更新恢复。
我使用的是 Debian 9 Stretch,我的显卡是 Intel HD Graphics 5000。
我正在尝试在我的 Macbook Air 笔记本电脑和 Debian 9 Stretch 上玩一些游戏,但我的键盘和触控板不能同时工作。这个问题有解决方案,提到用xinput
. 问题是,我的键盘/触控板没有任何与此相关的属性,即“键入时禁用”。
xinput
输出:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ bcm5974 id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Apple Inc. Apple Internal Keyboard / Trackpad id=10 [slave keyboard (3)]
$ xinput --list-props 10
Device 'Apple Inc. Apple Internal Keyboard / Trackpad':
Device Enabled (139): 1
Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (261): 1, 0
libinput Send Events Mode Enabled (262): 0, 0
libinput Send Events Mode Enabled Default (263): 0, 0
Device Node (264): "/dev/input/event1"
Device Product ID (265): 1452, 657
$ sudo xinput --list --long "Apple Inc. Apple Internal Keyboard / Trackpad"
Apple Inc. Apple Internal Keyboard / Trackpad id=10 [slave keyboard (3)]
Reporting 1 classes:
Class originated from: 10. Type: XIKeyClass
Keycodes supported: 248