LinuxForum.Fans
Тема

Пару маленьких глюков

Автор: vux 11 сообщений 3859 просмотров
#232725

Есть 2 маленьких глюка, но иногда они слегка напрягают.

1. Иногда при загрузке иксов, появляеться рабочий стол, но сразу сбиваеться в какойто черній єкран.
Остаеться только курсор. Приходиться по ctrl+alt+F* переходить в консоль и сразу по alt+F* обратно - и там уже нормальные иксы.

2. Иногда при загрузке иксов разрешение по горизонтали меньше чем обычно - экран сплющен немного.
Приходиться перезагружать иксы - и сразу все нормально

Эти глюки я наблюдал в своем генту и в systemRescue - который, как вы знаете, построен на генту.
На ебунте никогда их не наблюдал.

Видео - всроенное в бук Интеловое gma4500 - которое собирал по http://en.gentoo-wiki.com/wiki/Intel_GMA

#232728

Врятли конечно но всеже:

text
eselect opengl list

Ну и xorg.conf покажи

#232737

vux, покажите вывод команды

text

zegrep 'AGP|FB|DRM' /proc/config.gz | grep -v '^#'

...если не сработает, то

text
egrep 'AGP|FB|DRM'  /usr/src/linux/.config | grep -v '^#'
#232739

Да, и покажите /var/log/Xorg.0.log.

#232828

[console]CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_I915=m
CONFIG_DRM_I915_KMS=y
CONFIG_FB=y
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y
[/console]

Xorg.0.log:

Показать
[ 10.767]
X.Org X Server 1.11.2
Release Date: 2011-11-04
[ 10.776] X Protocol Version 11, Revision 0
[ 10.776] Build Operating System: Linux 3.0.0-12-generic x86_64 Gentoo
[ 10.776] Current Operating System: Linux hp4510s 3.2.6-gentoo #1 SMP PREEMPT Mon Feb 27 11:24:00 FET 2012 x86_64
[ 10.776] Kernel command line: root=/dev/sda2
[ 10.776] Build Date: 23 December 2011 11:06:57PM
[ 10.776]
[ 10.776] Current version of pixman: 0.24.0
[ 10.776] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 10.776] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10.777] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 27 18:20:03 2012
[ 10.789] (==) Using config file: "/etc/X11/xorg.conf"
[ 10.789] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 10.789] (==) ServerLayout "X.org Configured"
[ 10.789] (**) |-->Screen "Screen0" (0)
[ 10.790] (**) | |-->Monitor "Monitor0"
[ 10.791] (**) | |-->Device "Card0"
[ 10.791] (==) Automatically adding devices
[ 10.791] (==) Automatically enabling devices
[ 10.809] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 10.809] Entry deleted from font path.
[ 10.809] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 10.809] Entry deleted from font path.
[ 10.809] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 10.809] Entry deleted from font path.
[ 10.809] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 10.809] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 10.827] Entry deleted from font path.
[ 10.827] (**) FontPath set to:
/usr/share/fonts/100dpi/,
/usr/share/fonts/100dpi/
[ 10.827] (**) ModulePath set to "/usr/lib64/xorg/modules"
[ 10.827] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 10.834] (II) Loader magic: 0x803ac0
[ 10.834] (II) Module ABI versions:
[ 10.834] X.Org ANSI C Emulation: 0.4
[ 10.834] X.Org Video Driver: 11.0
[ 10.834] X.Org XInput driver : 13.0
[ 10.834] X.Org Server Extension : 6.0
[ 10.835] (--) PCI:*(0:0:2:0) 8086:2a42:103c:3072 rev 7, Mem @ 0x90000000/4194304, 0x80000000/268435456, I/O @ 0x00006120/8
[ 10.835] (--) PCI: (0:0:2:1) 8086:2a43:103c:3072 rev 7, Mem @ 0x90400000/1048576
[ 10.835] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 10.835] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[ 10.835] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[ 10.835] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 10.835] (II) "record" will be loaded by default.
[ 10.835] (II) "dri" will be loaded by default.
[ 10.835] (II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
[ 10.835] (II) LoadModule: "glx"
[ 10.880] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 10.895] (II) Module glx: vendor="X.Org Foundation"
[ 10.895] compiled for 1.11.2, module version = 1.0.0
[ 10.895] ABI class: X.Org Server Extension, version 6.0
[ 10.895] (==) AIGLX enabled
[ 10.895] (II) Loading extension GLX
[ 10.895] (II) LoadModule: "extmod"
[ 10.896] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[ 10.900] (II) Module extmod: vendor="X.Org Foundation"
[ 10.900] compiled for 1.11.2, module version = 1.0.0
[ 10.900] Module class: X.Org Server Extension
[ 10.900] ABI class: X.Org Server Extension, version 6.0
[ 10.900] (II) Loading extension MIT-SCREEN-SAVER
[ 10.900] (II) Loading extension XFree86-VidModeExtension
[ 10.900] (II) Loading extension XFree86-DGA
[ 10.900] (II) Loading extension DPMS
[ 10.900] (II) Loading extension XVideo
[ 10.900] (II) Loading extension XVideo-MotionCompensation
[ 10.900] (II) Loading extension X-Resource
[ 10.900] (II) LoadModule: "dri2"
[ 10.901] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[ 10.940] (II) Module dri2: vendor="X.Org Foundation"
[ 10.940] compiled for 1.11.2, module version = 1.2.0
[ 10.940] ABI class: X.Org Server Extension, version 6.0
[ 10.940] (II) Loading extension DRI2
[ 10.940] (II) LoadModule: "dbe"
[ 10.941] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[ 10.941] (II) Module dbe: vendor="X.Org Foundation"
[ 10.941] compiled for 1.11.2, module version = 1.0.0
[ 10.941] Module class: X.Org Server Extension
[ 10.941] ABI class: X.Org Server Extension, version 6.0
[ 10.941] (II) Loading extension DOUBLE-BUFFER
[ 10.941] (II) LoadModule: "record"
[ 10.941] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[ 10.942] (II) Module record: vendor="X.Org Foundation"
[ 10.942] compiled for 1.11.2, module version = 1.13.0
[ 10.942] Module class: X.Org Server Extension
[ 10.942] ABI class: X.Org Server Extension, version 6.0
[ 10.942] (II) Loading extension RECORD
[ 10.942] (II) LoadModule: "dri"
[ 10.943] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[ 10.943] (II) Module dri: vendor="X.Org Foundation"
[ 10.944] compiled for 1.11.2, module version = 1.0.0
[ 10.944] ABI class: X.Org Server Extension, version 6.0
[ 10.944] (II) Loading extension XFree86-DRI
[ 10.944] (II) LoadModule: "intel"
[ 10.944] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 10.965] (II) Module intel: vendor="X.Org Foundation"
[ 10.965] compiled for 1.11.2, module version = 2.17.0
[ 10.965] Module class: X.Org Video Driver
[ 10.965] ABI class: X.Org Video Driver, version 11.0
[ 10.966] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server
[ 10.966] (--) using VT number 8

[ 10.977] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 10.977] drmOpenDevice: node name is /dev/dri/card0
[ 10.977] drmOpenDevice: open result is 9, (OK)
[ 10.996] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[ 10.996] drmOpenDevice: node name is /dev/dri/card0
[ 10.996] drmOpenDevice: open result is 9, (OK)
[ 10.996] drmOpenByBusid: drmOpenMinor returns 9
[ 10.996] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
[ 10.996] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 10.996] (==) intel(0): RGB weight 888
[ 10.996] (==) intel(0): Default visual is TrueColor
[ 10.996] (II) intel(0): Integrated Graphics Chipset: Intel(R) GM45
[ 10.996] (--) intel(0): Chipset: "GM45"
[ 10.996] (**) intel(0): Relaxed fencing enabled
[ 10.996] (**) intel(0): Wait on SwapBuffers? enabled
[ 10.996] (**) intel(0): Triple buffering? enabled
[ 10.996] (**) intel(0): Framebuffer tiled
[ 10.996] (**) intel(0): Pixmaps tiled
[ 10.996] (**) intel(0): 3D buffers tiled
[ 10.996] (**) intel(0): SwapBuffers wait enabled
[ 10.996] (==) intel(0): video overlay key set to 0x101fe
[ 11.093] (II) intel(0): Output LVDS1 using monitor section Monitor0
[ 11.093] (II) intel(0): found backlight control interface /sys/class/backlight/acpi_video0
[ 11.130] (II) intel(0): Output VGA1 has no monitor section
[ 11.166] (II) intel(0): Output HDMI1 has no monitor section
[ 11.189] (II) intel(0): Output DP1 has no monitor section
[ 11.209] (II) intel(0): Output DP2 has no monitor section
[ 11.340] (II) intel(0): Output TV1 has no monitor section
[ 11.556] (II) intel(0): EDID for output LVDS1
[ 11.557] (II) intel(0): Manufacturer: CMO Model: 1571 Serial#: 0
[ 11.557] (II) intel(0): Year: 2008 Week: 36
[ 11.557] (II) intel(0): EDID Version: 1.3
[ 11.557] (II) intel(0): Digital Display Input
[ 11.557] (II) intel(0): Max Image Size [cm]: horiz.: 35 vert.: 19
[ 11.557] (II) intel(0): Gamma: 2.20
[ 11.557] (II) intel(0): No DPMS capabilities specified
[ 11.557] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 11.557] (II) intel(0): First detailed timing is preferred mode
[ 11.557] (II) intel(0): redX: 0.602 redY: 0.340 greenX: 0.306 greenY: 0.530
[ 11.557] (II) intel(0): blueX: 0.151 blueY: 0.120 whiteX: 0.313 whiteY: 0.329
[ 11.557] (II) intel(0): Manufacturer's mask: 0
[ 11.557] (II) intel(0): Supported detailed timing:
[ 11.557] (II) intel(0): clock: 69.3 MHz Image Size: 344 x 193 mm
[ 11.557] (II) intel(0): h_active: 1366 h_sync: 1382 h_sync_end 1416 h_blank_end 1466 h_border: 0
[ 11.557] (II) intel(0): v_active: 768 v_sync: 770 v_sync_end 776 v_blanking: 788 v_border: 0
[ 11.557] (II) intel(0): N156B6-L04
[ 11.557] (II) intel(0): CMO
[ 11.557] (II) intel(0): N156B6-L04
[ 11.557] (II) intel(0): EDID (in hex):
[ 11.557] (II) intel(0): 00ffffffffffff000daf711500000000
[ 11.557] (II) intel(0): 24120103802313780a07f59a574e8726
[ 11.557] (II) intel(0): 1e505400000001010101010101010101
[ 11.557] (II) intel(0): 010101010101121b5664500014301022
[ 11.557] (II) intel(0): 260058c110000018000000fe004e3135
[ 11.557] (II) intel(0): 3642362d4c30340a2020000000fe0043
[ 11.557] (II) intel(0): 4d4f0a202020202020202020000000fe
[ 11.557] (II) intel(0): 004e31353642362d4c30340a2020006f
[ 11.557] (II) intel(0): EDID vendor "CMO", prod id 5489
[ 11.557] (II) intel(0): Printing DDC gathered Modelines:
[ 11.557] (II) intel(0): Modeline "1366x768"x0.0 69.30 1366 1382 1416 1466 768 770 776 788 -hsync -vsync (47.3 kHz)
[ 11.557] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
[ 11.557] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
[ 11.558] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
[ 11.558] (II) intel(0): Printing probed modes for output LVDS1
[ 11.558] (II) intel(0): Modeline "1366x768"x60.0 69.30 1366 1382 1416 1466 768 770 776 788 -hsync -vsync (47.3 kHz)
[ 11.558] (II) intel(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
[ 11.558] (II) intel(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
[ 11.558] (II) intel(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz)
[ 11.558] (II) intel(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
[ 11.643] (II) intel(0): EDID for output VGA1
[ 11.759] (II) intel(0): EDID for output HDMI1
[ 11.786] (II) intel(0): EDID for output DP1
[ 11.856] (II) intel(0): EDID for output DP2
[ 12.053] (II) intel(0): EDID for output TV1
[ 12.053] (II) intel(0): Output LVDS1 connected
[ 12.053] (II) intel(0): Output VGA1 disconnected
[ 12.053] (II) intel(0): Output HDMI1 disconnected
[ 12.053] (II) intel(0): Output DP1 disconnected
[ 12.053] (II) intel(0): Output DP2 disconnected
[ 12.053] (II) intel(0): Output TV1 disconnected
[ 12.053] (II) intel(0): Using exact sizes for initial modes
[ 12.053] (II) intel(0): Output LVDS1 using initial mode 1366x768
[ 12.053] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 12.053] (II) intel(0): Kernel page flipping support detected, enabling
[ 12.053] (**) intel(0): Display dimensions: (350, 190) mm
[ 12.053] (**) intel(0): DPI set to (99, 102)
[ 12.053] (II) Loading sub module "fb"
[ 12.053] (II) LoadModule: "fb"
[ 12.053] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 12.055] (II) Module fb: vendor="X.Org Foundation"
[ 12.055] compiled for 1.11.2, module version = 1.0.0
[ 12.055] ABI class: X.Org ANSI C Emulation, version 0.4
[ 12.055] (II) Loading sub module "dri2"
[ 12.055] (II) LoadModule: "dri2"
[ 12.055] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[ 12.055] (II) Module dri2: vendor="X.Org Foundation"
[ 12.055] compiled for 1.11.2, module version = 1.2.0
[ 12.055] ABI class: X.Org Server Extension, version 6.0
[ 12.055] (==) Depth 24 pixmap format is 32 bpp
[ 12.055] (II) intel(0): [DRI2] Setup complete
[ 12.055] (II) intel(0): [DRI2] DRI driver: i965
[ 12.056] (II) intel(0): Allocated new frame buffer 1408x768 stride 5632, tiled
[ 12.102] (II) UXA(0): Driver registered support for the following operations:
[ 12.102] (II) solid
[ 12.102] (II) copy
[ 12.102] (II) composite (RENDER acceleration)
[ 12.102] (II) put_image
[ 12.102] (II) get_image
[ 12.102] (==) intel(0): Backing store disabled
[ 12.102] (==) intel(0): Silken mouse enabled
[ 12.102] (II) intel(0): Initializing HW Cursor
[ 12.280] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 13.233] (**) intel(0): DPMS enabled
[ 13.233] (==) intel(0): Intel XvMC decoder enabled
[ 13.233] (II) intel(0): Set up textured video
[ 13.233] (II) intel(0): [XvMC] xvmc_vld driver initialized.
[ 13.233] (II) intel(0): direct rendering: DRI2 Enabled
[ 13.233] (==) intel(0): hotplug detection: "enabled"
[ 13.233] (--) RandR disabled
[ 13.233] (II) Initializing built-in extension Generic Event Extension
[ 13.233] (II) Initializing built-in extension SHAPE
[ 13.233] (II) Initializing built-in extension MIT-SHM
[ 13.233] (II) Initializing built-in extension XInputExtension
[ 13.233] (II) Initializing built-in extension XTEST
[ 13.233] (II) Initializing built-in extension BIG-REQUESTS
[ 13.233] (II) Initializing built-in extension SYNC
[ 13.233] (II) Initializing built-in extension XKEYBOARD
[ 13.233] (II) Initializing built-in extension XC-MISC
[ 13.233] (II) Initializing built-in extension XINERAMA
[ 13.233] (II) Initializing built-in extension XFIXES
[ 13.233] (II) Initializing built-in extension RENDER
[ 13.233] (II) Initializing built-in extension RANDR
[ 13.233] (II) Initializing built-in extension COMPOSITE
[ 13.233] (II) Initializing built-in extension DAMAGE
[ 13.406] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 13.406] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 13.406] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 13.406] (II) AIGLX: enabled GLX_SGI_make_current_read
[ 13.406] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 13.406] (II) AIGLX: Loaded and initialized i965
[ 13.406] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 13.406] (II) intel(0): Setting screen physical size to 361 x 203
[ 13.677] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 13.677] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 13.677] (**) Power Button: Applying InputClass "keyboard-all"
[ 13.677] (**) Power Button: Applying InputClass "mouse-all"
[ 13.677] (II) LoadModule: "evdev"
[ 13.677] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.683] (II) Module evdev: vendor="X.Org Foundation"
[ 13.683] compiled for 1.11.2, module version = 2.6.0
[ 13.683] Module class: X.Org XInput Driver
[ 13.683] ABI class: X.Org XInput driver, version 13.0
[ 13.683] (II) Using input driver 'evdev' for 'Power Button'
[ 13.683] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.683] (**) Power Button: always reports core events
[ 13.683] (**) Power Button: Device: "/dev/input/event2"
[ 13.683] (--) Power Button: Found keys
[ 13.683] (II) Power Button: Configuring as keyboard
[ 13.684] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[ 13.684] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 13.684] (**) Option "xkb_rules" "evdev"
[ 13.684] (**) Option "xkb_model" "evdev"
[ 13.684] (**) Option "xkb_layout" "us,ru,ua"
[ 13.684] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 13.719] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[ 13.719] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 13.719] (**) Video Bus: Applying InputClass "keyboard-all"
[ 13.719] (**) Video Bus: Applying InputClass "mouse-all"
[ 13.719] (II) Using input driver 'evdev' for 'Video Bus'
[ 13.719] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.719] (**) Video Bus: always reports core events
[ 13.720] (**) Video Bus: Device: "/dev/input/event7"
[ 13.720] (--) Video Bus: Found keys
[ 13.720] (II) Video Bus: Configuring as keyboard
[ 13.720] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input7/event7"
[ 13.720] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[ 13.720] (**) Option "xkb_rules" "evdev"
[ 13.720] (**) Option "xkb_model" "evdev"
[ 13.720] (**) Option "xkb_layout" "us,ru,ua"
[ 13.720] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 13.720] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[ 13.720] (**) Lid Switch: Applying InputClass "keyboard-all"
[ 13.720] (**) Lid Switch: Applying InputClass "mouse-all"
[ 13.720] (II) Using input driver 'evdev' for 'Lid Switch'
[ 13.720] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.720] (**) Lid Switch: always reports core events
[ 13.720] (**) Lid Switch: Device: "/dev/input/event1"
[ 13.720] (WW) Lid Switch: Don't know how to use device
[ 13.740] (EE) PreInit returned 8 for "Lid Switch"
[ 13.740] (II) UnloadModule: "evdev"
[ 13.740] (II) Unloading evdev
[ 13.740] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[ 13.740] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[ 13.740] (**) Sleep Button: Applying InputClass "keyboard-all"
[ 13.740] (**) Sleep Button: Applying InputClass "mouse-all"
[ 13.740] (II) Using input driver 'evdev' for 'Sleep Button'
[ 13.740] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.740] (**) Sleep Button: always reports core events
[ 13.740] (**) Sleep Button: Device: "/dev/input/event0"
[ 13.740] (--) Sleep Button: Found keys
[ 13.740] (II) Sleep Button: Configuring as keyboard
[ 13.740] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input0/event0"
[ 13.740] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[ 13.740] (**) Option "xkb_rules" "evdev"
[ 13.740] (**) Option "xkb_model" "evdev"
[ 13.740] (**) Option "xkb_layout" "us,ru,ua"
[ 13.740] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 13.741] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event4)
[ 13.741] (**) Logitech USB Receiver: Applying InputClass "evdev pointer catchall"
[ 13.741] (**) Logitech USB Receiver: Applying InputClass "keyboard-all"
[ 13.741] (**) Logitech USB Receiver: Applying InputClass "mouse-all"
[ 13.741] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[ 13.741] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.741] (**) Logitech USB Receiver: always reports core events
[ 13.741] (**) Logitech USB Receiver: Device: "/dev/input/event4"
[ 13.741] (--) Logitech USB Receiver: Found 20 mouse buttons
[ 13.741] (--) Logitech USB Receiver: Found scroll wheel(s)
[ 13.741] (--) Logitech USB Receiver: Found relative axes
[ 13.741] (--) Logitech USB Receiver: Found x and y relative axes
[ 13.741] (II) Logitech USB Receiver: Configuring as mouse
[ 13.741] (II) Logitech USB Receiver: Adding scrollwheel support
[ 13.741] (**) Logitech USB Receiver: YAxisMapping: buttons 4 and 5
[ 13.741] (**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 13.741] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input4/event4"
[ 13.741] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE, id 9)
[ 13.741] (II) Logitech USB Receiver: initialized for relative axes.
[ 13.741] (**) Logitech USB Receiver: (accel) keeping acceleration scheme 1
[ 13.741] (**) Logitech USB Receiver: (accel) acceleration profile 0
[ 13.741] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 13.741] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 13.742] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/mouse0)
[ 13.742] (**) Logitech USB Receiver: Applying InputClass "keyboard-all"
[ 13.742] (**) Logitech USB Receiver: Applying InputClass "mouse-all"
[ 13.742] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[ 13.742] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.742] (**) Logitech USB Receiver: always reports core events
[ 13.742] (**) Logitech USB Receiver: Device: "/dev/input/mouse0"
[ 13.742] (EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
[ 13.763] (EE) PreInit returned 8 for "Logitech USB Receiver"
[ 13.763] (II) UnloadModule: "evdev"
[ 13.763] (II) Unloading evdev
[ 13.763] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event5)
[ 13.763] (**) Logitech USB Receiver: Applying InputClass "evdev keyboard catchall"
[ 13.763] (**) Logitech USB Receiver: Applying InputClass "keyboard-all"
[ 13.763] (**) Logitech USB Receiver: Applying InputClass "mouse-all"
[ 13.763] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[ 13.763] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.763] (**) Logitech USB Receiver: always reports core events
[ 13.763] (**) Logitech USB Receiver: Device: "/dev/input/event5"
[ 13.763] (--) Logitech USB Receiver: Found 1 mouse buttons
[ 13.763] (--) Logitech USB Receiver: Found scroll wheel(s)
[ 13.763] (--) Logitech USB Receiver: Found relative axes
[ 13.763] (--) Logitech USB Receiver: Found absolute axes
[ 13.763] (--) Logitech USB Receiver: Found keys
[ 13.763] (II) Logitech USB Receiver: Configuring as mouse
[ 13.763] (II) Logitech USB Receiver: Configuring as keyboard
[ 13.764] (II) Logitech USB Receiver: Adding scrollwheel support
[ 13.764] (**) Logitech USB Receiver: YAxisMapping: buttons 4 and 5
[ 13.764] (**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 13.764] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input5/event5"
[ 13.764] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD, id 10)
[ 13.764] (**) Option "xkb_rules" "evdev"
[ 13.764] (**) Option "xkb_model" "evdev"
[ 13.764] (**) Option "xkb_layout" "us,ru,ua"
[ 13.764] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 13.764] (EE) Logitech USB Receiver: failed to initialize for relative axes.
[ 13.764] (II) Logitech USB Receiver: initialized for absolute axes.
[ 13.764] (**) Logitech USB Receiver: (accel) keeping acceleration scheme 1
[ 13.764] (**) Logitech USB Receiver: (accel) acceleration profile 0
[ 13.764] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 13.764] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 13.765] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[ 13.765] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 13.765] (**) AT Translated Set 2 keyboard: Applying InputClass "keyboard-all"
[ 13.765] (**) AT Translated Set 2 keyboard: Applying InputClass "mouse-all"
[ 13.765] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 13.765] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.765] (**) AT Translated Set 2 keyboard: always reports core events
[ 13.765] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event3"
[ 13.765] (--) AT Translated Set 2 keyboard: Found keys
[ 13.765] (II) AT Translated Set 2 keyboard: Configuring as keyboard
[ 13.765] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[ 13.765] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[ 13.765] (**) Option "xkb_rules" "evdev"
[ 13.765] (**) Option "xkb_model" "evdev"
[ 13.765] (**) Option "xkb_layout" "us,ru,ua"
[ 13.765] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 13.765] (II) config/udev: Adding input device HP WMI hotkeys (/dev/input/event6)
[ 13.765] (**) HP WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[ 13.765] (**) HP WMI hotkeys: Applying InputClass "keyboard-all"
[ 13.765] (**) HP WMI hotkeys: Applying InputClass "mouse-all"
[ 13.765] (II) Using input driver 'evdev' for 'HP WMI hotkeys'
[ 13.765] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 13.765] (**) HP WMI hotkeys: always reports core events
[ 13.766] (**) HP WMI hotkeys: Device: "/dev/input/event6"
[ 13.766] (--) HP WMI hotkeys: Found keys
[ 13.766] (II) HP WMI hotkeys: Configuring as keyboard
[ 13.766] (**) Option "config_info" "udev:/sys/devices/virtual/input/input6/event6"
[ 13.766] (II) XINPUT: Adding extended input device "HP WMI hotkeys" (type: KEYBOARD, id 12)
[ 13.766] (**) Option "xkb_rules" "evdev"
[ 13.766] (**) Option "xkb_model" "evdev"
[ 13.766] (**) Option "xkb_layout" "us,ru,ua"
[ 13.766] (**) Option "xkb_options" "grp:menu_toggle,grp_led:scroll"
[ 377.746] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 378.576] (II) AIGLX: Resuming AIGLX clients after VT switch
[ 378.603] (II) intel(0): EDID vendor "CMO", prod id 5489
[ 378.603] (II) intel(0): Printing DDC gathered Modelines:
[ 378.603] (II) intel(0): Modeline "1366x768"x0.0 69.30 1366 1382 1416 1466 768 770 776 788 -hsync -vsync (47.3 kHz)

[console] eselect opengl list
Available OpenGL implementations:
[1] xorg-x11 *
[/console]

#232829

еще вспомнил одно:
когда вынимаешь питание из ноута - экран темнее - это понятно
но когда втыкаешь обратно - он становится светлее но - не полностью
вопрос - как повесить скрипт на втыкание\вытыкание питания.
вручную я умею яркость менять. Можно скрипт написать и повесить.
Не знаю может в DE яркость возвращаеться - но у меня fluxbox

#232830

vux, в принципе должно хватить связки sys-power/acpid+app-laptop/laptop-mode-tools.
Для некоторых ноутбуков есть уже готовые наборы скриптов и программ. Посмотрите в /usr/portage/app-laptop.

#233149

Спасиба. Полезно, но хотелось бы всеравно самому отлавливать такие события.
Я пощитал что мне не нужно laptop-mode.
99.9 % мой бук питается от сети.
Как можно через acpi отследить момент втыкания питания?

#233151
vux написал:
Как можно через acpi отследить момент втыкания питания?

Почитайте комментарии в файле /etc/acpi/default.sh — всё очень понятно, разве что, по-английски. wink

#233164

меня тоже интересует этот вопрос... но времени раскапывать, как это сделать красиво не особо есть. Если разберётесь - расскажите...
по идее в /etc/acpi/events создайтся правило, которое вызывает соответствующий скрипт...

#233223
Fat-Zer написал:
меня тоже интересует этот вопрос... но времени раскапывать, как это сделать красиво не особо есть.

Если что-то не понятно, спросите, прокомментирую:

Показать

[console]]
lupo@gentoo-laptop acpi % ls -l [gentoo-laptop][0:41]
итого 16
-rwxr-xr-x 1 root root 1354 Авг 11 2010 default.sh*
drwxr-xr-x 2 root root 4096 Дек 21 22:43 events/
-rw-r--r-- 1 root root 1406 Окт 16 2010 function.sh
-rwxr-xr-x 1 root root 546 Авг 2 2009 pm_switch.sh*
lupo@gentoo-laptop acpi % cat default.sh [gentoo-laptop][0:41]
#!/bin/sh
# /etc/acpi/default.sh
# Default acpi script that takes an entry for all actions
set $*
# Читаем переменные и функции
. /etc/acpi/function.sh
#set $*

group=${1%%/*}
action=${1#*/}
device=$2
id=$3
value=$4

log_unhandled() {
logger "ACPI event unhandled: $*"
}

case "$group" in
button)
case "$action" in
power)
/sbin/init 0
;;

# if your laptop doesnt turn on/off the display via hardware
# switch and instead just generates an acpi event, you can force
# X to turn off the display via dpms. note you will have to run
# 'xhost +local:0' so root can access the X DISPLAY.
lid)
# xset dpms force off
pm-suspend
;;

*) log_unhandled $* ;;
esac
;;

ac_adapter)
case "$value" in
# Add code here to handle when the system is unplugged
# (maybe change cpu scaling to powersave mode). For
# multicore systems, make sure you set powersave mode
# for each core!
*0)
# cpufreq-set -g powersave
off_ac_adapter_action
;;

# Add code here to handle when the system is plugged in
# (maybe change cpu scaling to performance mode). For
# multicore systems, make sure you set performance mode
# for each core!
*1)
# cpufreq-set -g performance
on_ac_adapter_action
;;

*) log_unhandled $* ;;
esac
;;

*) log_unhandled $* ;;
esac
lupo@gentoo-laptop acpi % cat function.sh [gentoo-laptop][0:41]
#!/bin/sh
# Файл функций
on_ac_adapter_action() {
### 22.09.2008
### Добавил из https://nikoli.selfip.org/ru/node/417 #####
# echo "Adapter mode ON $(date +%x%t%X)" >> /var/log/start_mode.log
hdparm -B 255 -S 240 /dev/sda
echo 0 > /proc/sys/vm/laptop_mode
echo 10 > /proc/sys/vm/dirty_ratio
echo 5 > /proc/sys/vm/dirty_background_ratio
echo 500 > /proc/sys/vm/dirty_writeback_centisecs
logger "${0}: AC adapter is ON"
}

off_ac_adapter_action() {
### 22.09.2008
### Добавил из https://nikoli.selfip.org/ru/node/417 #####
### Только заменил -S 12 на -S 24
### (переход в standby через 2 минуты вместо 1 минуты)
### и -B 96 надо менять на что-то большее, чтобы не так быстро
### увеличивался Load_Cycle_Count в выводе `smartctl -a /dev/sda`
# echo "Battery mode ON $(date +%x%t%X)" >> /var/log/start_mode.log
hdparm -B 196 -S 24 /dev/sda
echo 5 > /proc/sys/vm/laptop_mode
echo 40 > /proc/sys/vm/dirty_ratio
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
logger "${0}: AC adapter is OFF"
}
lupo@gentoo-laptop acpi % cat pm_switch.sh [gentoo-laptop][0:41]
#!/bin/sh
# /etc/acpi/pm_switch.sh
# Скрипт для проверки подключён ли сетевой адаптер или нет
# и, соответственно, переключения настроек взависимости от состояния.
# Читаем переменные и функции
. /etc/acpi/function.sh
# on_ac_power утилита для проверки состояния адаптера из пакета sys-power/pm-utils
if on_ac_power
then
on_ac_adapter_action
else
off_ac_adapter_action
fi

lupo@gentoo-laptop acpi %
[/console]
Войдите или зарегистрируйтесь, чтобы ответить.