Автор Тема: Xfce c Sysv  (Прочитано 563580 раз)

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 251
  • Учиться .... Телепатами не рождаются, ими ....
    • Email
Re: Xfce c Sysv
« Ответ #60 : 29.03.2016 14:02:00 »
А какое-то событие по закрытию крышки ловится?

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #61 : 29.03.2016 14:54:26 »
А какое-то событие по закрытию крышки ловится?

Вообще ничего.
Один только ntpd стукнул в messages и daemons/info.

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #62 : 29.03.2016 15:07:25 »
Пока оставил эти настройки рулеза для xfce4-pm-helper
https://forum.altlinux.org/index.php?topic=36177.msg282805#msg282805
и поправил:
# cat /etc/acpi/events/power
event=button/power
#action=/sbin/poweroff
action=/usr/bin/pkexec /usr/sbin/xfce4-pm-helper --suspend
Перегрузить acpid

По кратковременному нажатию кнопки power, в память засыпает, но проявляется эффект:
- Быстро нажали кнопку PowerOff ноутбука для засыпания в память
- Ноут ушёл спать в память
- Быстро нажали кнопку PowerOff ноутбука для просыпания из памяти
- Ноут проснулся, содержимое на экране отобразилось и через 2-3 секунды ноут снова ушёл спать в память
- Опять нажимаем PowerOff ноута для просыпания из памяти, и после этого, повторного засыпания не происходит и ноут работает.

Не могу придумать как избавиться от двойного засыпания в память.

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 549
Re: Xfce c Sysv
« Ответ #63 : 29.03.2016 15:17:06 »
Speccyfighter
Мой простой   вариант с eeepc-acpi-scripts как я понимаю у Вас не срабатывает?

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #64 : 29.03.2016 16:05:40 »
Speccyfighter
Мой простой   вариант с eeepc-acpi-scripts как я понимаю у Вас не срабатывает?

Не-а. У меня крышка всегда open:
# cat /proc/acpi/button/lid/C1E9/state
state:      open

dango

  • Гость
Re: Xfce c Sysv
« Ответ #65 : 29.03.2016 16:28:05 »
М-да, крышку я даже в мыслях не подумал проверять, т.к. пользую только poweroff.
Наверное, надо расписать что-то вроде check-list для проверок дистрибутивов и сборок на функциональность.

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 549
Re: Xfce c Sysv
« Ответ #66 : 29.03.2016 16:57:44 »
С крышкой получается по разному идет обработка кнопок у меня и у Speccyfighter
Потому как на моем ноуте  100% срабатывание того кода который я привел выше.
Потом при открытии крышки сам просыпается уже без посторонней помощи....

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 549
Re: Xfce c Sysv
« Ответ #67 : 29.03.2016 17:05:32 »
Speccyfighter
а если запустить  acpi_listen и  закрыть/открыть крышку тоже ничего отобразит?

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #68 : 29.03.2016 17:19:54 »
Speccyfighter
а если запустить  acpi_listen и  закрыть/открыть крышку тоже ничего отобразит?

Ничего. Ни listen, ни available.

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 549
Re: Xfce c Sysv
« Ответ #69 : 29.03.2016 17:28:11 »
Упс... А если для эксперимента загрузиться на этом ноуте в systemd-шный live и там посмотреть? Чтобы определиться с чем связана проблема  - с поддержкой этого датчика вообще а альте или это именно в данной сборке что-то не так..
И есть ли реакция на кнопку если загрузиться в другой дистрибутив?
Не может быть так что просто кнопка сдохла?

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #70 : 29.03.2016 17:54:02 »
Оставил рулез
# grep -v '//' /etc/polkit-1/rules.d/60-xfce4-pm-helper.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.xfce.power.xfce4-pm-helper"  && subject.isInGroup("xgrp") )
    {
        return polkit.Result.YES;
    }
});

и команду
/usr/bin/pkexec /usr/sbin/xfce4-pm-helper --suspend

повесил на хоткеи
Super L + S


Но можно и эту команду повесить на хоткеи
pkexec /usr/sbin/pm-suspend

или эту
pkexec /bin/su -c "/bin/echo -n mem >/sys/power/state"

но тогда рулез должен быть таким
# grep -v '//' /etc/polkit-1/rules.d/60-pkexec.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.policykit.exec"  && subject.isInGroup("xgrp") )
    {
        return polkit.Result.YES;
    }
});


Но в этом случае нужно тщательно продумать безопасность, поскольку такое разрешение ("org.freedesktop.policykit.exec") позволяет запускать пользователю root-овые команды через pkexec.
« Последнее редактирование: 29.03.2016 20:38:48 от Speccyfighter »

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #71 : 29.03.2016 18:25:17 »
Упс... А если для эксперимента загрузиться на этом ноуте в
...
 другой дистрибутив?
Не может быть так что просто кнопка сдохла?

Нет, не сдохла.
Загрузился с кардридера в salixlive-xfce-14.1 (бинарно совместимый со Slackware 14.1 лайв).
Настроил тамошний xfce4-power-manager.
Закрыл крышку и ноут уснул в память.

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 251
  • Учиться .... Телепатами не рождаются, ими ....
    • Email
Re: Xfce c Sysv
« Ответ #72 : 29.03.2016 21:51:08 »
Есть смысл посмотреть какие модули ядра использует Slackware

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #73 : 30.03.2016 13:10:11 »
В сизифном xfce пока дошёл сюда:
# sed -n '11,19p' /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=21
B: SW=1
# grep . /sys/devices/LNXSYSTM\:00/device\:00/*/input/input*/name
/sys/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1/name:Lid Switch
/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input0/name:Sleep Button
# grep . /sys/devices/LNXSYSTM\:00/device\:00/*/input/input*/capabilities/sw
/sys/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1/capabilities/sw:1
/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input0/capabilities/sw:0
# cat /proc/acpi/button/lid/C1E9/state
state:      open

Т.е. устройство есть:
# grep -rH 'PNP0C0D:00/input/input1' /var/log
/var/log/dmesg:[    1.742649] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1

но acpi, гад, его вообще не обрабатывает:
# cat /etc/acpi/events/lid
event=button/lid
#action=/usr/bin/pkexec /usr/sbin/xfce4-pm-helper --suspend
#action=/usr/sbin/pm-suspend
action=echo -n mem >/sys/power/state
# ll /usr/sbin/pm-suspend
lrwxrwxrwx 1 root root 29 мар  8 12:31 /usr/sbin/pm-suspend -> ../lib/pm-utils/bin/pm-action
# ll /usr/lib/pm-utils/bin/pm-action
-rwxr-xr-x 1 root root 2903 мар  8 12:30 /usr/lib/pm-utils/bin/pm-action

а кнопка Power работает
# grep -v ^# /etc/acpi/events/power
event=button/power
action=/sbin/poweroff
# ll /sbin/poweroff
lrwxrwxrwx 1 root root 4 мар  8 12:29 /sbin/poweroff -> halt
# ll /sbin/halt
-rwxr-xr-x 1 root root 13880 мар  8 12:29 /sbin/halt

Крышка и открывалась и закрывалась
$  acpi_listen
thermal_zone LNXTHERM:00 00000081 00000000
video/switchmode VMOD 00000080 00000000
thermal_zone LNXTHERM:00 00000081 00000000
thermal_zone LNXTHERM:00 00000081 00000000
...

# ls -l /lib/modules/$(uname -r)/kernel/drivers/acpi
итого 212
-rw-r--r-- 1 root root  7206 мар 17 16:22 ac.ko
-rw-r--r-- 1 root root  8845 мар 17 16:22 acpi_extlog.ko
-rw-r--r-- 1 root root 13183 мар 17 16:22 acpi_pad.ko
drwxr-xr-x 2 root root  4096 мар 29 05:36 apei
-rw-r--r-- 1 root root 14562 мар 17 16:22 battery.ko
-rw-r--r-- 1 root root 11424 мар 17 16:22 button.ko
-rw-r--r-- 1 root root  4534 мар 17 16:22 custom_method.ko
-rw-r--r-- 1 root root  5754 мар 17 16:22 ec_sys.ko
-rw-r--r-- 1 root root  5837 мар 17 16:22 fan.ko
-rw-r--r-- 1 root root 43062 мар 17 16:22 processor.ko
-rw-r--r-- 1 root root  9019 мар 17 16:22 sbshc.ko
-rw-r--r-- 1 root root 11801 мар 17 16:22 sbs.ko
-rw-r--r-- 1 root root 17297 мар 17 16:22 thermal.ko
-rw-r--r-- 1 root root 30515 мар 17 16:22 video.ko
# modinfo button
filename:       /lib/modules/3.14.65-std-def-alt0.M70P.1/kernel/drivers/acpi/button.ko
license:        GPL
description:    ACPI Button Driver
author:         Paul Diefenbaugh
srcversion:     50F35560D0975E9BCF4C08B
alias:          acpi*:LNXPWRBN:*
alias:          acpi*:PNP0C0C:*
alias:          acpi*:LNXSLPBN:*
alias:          acpi*:PNP0C0E:*
alias:          acpi*:PNP0C0D:*
depends:       
intree:         Y
vermagic:       3.14.65-std-def-alt0.M70P.1 SMP mod_unload modversions 686
# lsmod|grep button
button                  4247  1 i915
# lsmod|sort
6lowpan_iphc            5901  1 bluetooth
ac                      2911  0
ac97_bus                1006  1 snd_ac97_codec
acpi_cpufreq            6725  0
af_packet              25108  2
agpgart                27902  3 drm,intel_agp,intel_gtt
arc4                    1611  2
ata_generic             2694  0
ata_piix               22193  3
battery                 6787  0
bluetooth             224149  2 btusb
btusb                  16354  0
button                  4247  1 i915
cdrom                  32562  1 sr_mod
cfg80211              435778  3 wl,libipw,ipw2200
cpufreq_ondemand        8094  1
cpufreq_stats           3439  0
crc16                   1343  2 ext4,bluetooth
crc_ccitt               1375  1 irda
crc_itu_t               1375  1 firewire_core
crc_t10dif               909  1 sd_mod
crct10dif_common        1255  1 crc_t10dif
dm_mod                 80202  0
drm                   234830  4 i915,drm_kms_helper
drm_kms_helper         38712  1 i915
ecb                     1651  0
ehci_hcd               40840  1 ehci_pci
ehci_pci                3061  0
evdev                   9196  13
ext4                  487010  2
fan                     2118  0
firewire_core          52615  1 firewire_ohci
firewire_ohci          30268  0
hp_wmi                  6898  0
i2c_algo_bit            4989  1 i915
i915                  703889  3
intel_agp               9127  0
intel_gtt              11339  3 i915,intel_agp
ipv6                  303821  8
ipw2200               132890  0
irda                  101726  0
iTCO_vendor_support     2382  1 iTCO_wdt
iTCO_wdt                4876  0
jbd2                   84060  1 ext4
joydev                  7966  0
lib80211                4200  4 lib80211_crypt_ccmp,lib80211_crypt_tkip,libipw,ipw2200
lib80211_crypt_ccmp     3987  1
lib80211_crypt_tkip     6742  1
libata                180516  3 pata_acpi,ata_generic,ata_piix
libipw                 25617  1 ipw2200
lpc_ich                11852  0
mbcache                 5966  1 ext4
michael_mic             1672  4
microcode              11513  0
mmc_core               94083  2 sdhci,sdhci_pci
Module                  Size  Used by
msr                     2228  0
ohci_hcd               26947  1 ohci_pci
ohci_pci                2469  0
parport                30790  2 ppdev,parport_pc
parport_pc             28433  0
pata_acpi               2530  0
pcmcia                 34123  0
pcmcia_core            13583  3 pcmcia,pcmcia_rsrc,yenta_socket
pcmcia_rsrc             9467  1 yenta_socket
pcspkr                  1506  0
ppdev                   4922  0
processor              23820  2 acpi_cpufreq
psmouse                83219  0
rfkill                 15647  4 cfg80211,hp_wmi,bluetooth
scsi_mod              184839  3 libata,sd_mod,sr_mod
sdhci                  25016  1 sdhci_pci
sdhci_pci              10355  0
sd_mod                 37175  4
serio_raw               4318  0
snd                    49949  10 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
snd_ac97_codec         97902  1 snd_intel8x0
snd_intel8x0           26581  3
snd_pcm                78520  2 snd_ac97_codec,snd_intel8x0
snd_timer              18456  1 snd_pcm
soundcore                840  1 snd
sparse_keymap           3430  1 hp_wmi
sr_mod                 13968  0
thermal                 7667  0
tifm_7xx1               3605  0
tifm_core               5773  1 tifm_7xx1
tpm_infineon            7048  0
uhci_hcd               21009  0
uinput                  6130  0
usb_common              2382  1 usbcore
usbcore               163820  6 btusb,uhci_hcd,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci
video                  11479  1 i915
wl                   6136412  0
wmi                     8577  1 hp_wmi
yenta_socket           19731  0
# ls -1 /etc/polkit-1/rules.d/
50-default.rules
60-pkexec.rules
60-suspend-hibernate.rules
60-sysvinit-nm.rules
60-xfce4-pm-helper.rules
60-xfsm-shutdown-helper.rules
99-udisk2_mount.rules

Оставлю на заметку:
Усыпление ноутбука Toshiba Satellite 40L (notebook suspend hibernate acpi linux)
Help & Support (Crunchbang 11 "Waldorf") » Getting acpid to work (solved)
http://www.thinkwiki.org/wiki/How_to_configure_acpid
http://www.thinkwiki.org/wiki/How_to_make_ACPI_work
http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram
https://wiki.archlinux.org/index.php/ACPI_modules
https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=Lid+Switch&fulltext=Search
« Последнее редактирование: 31.03.2016 00:03:42 от Speccyfighter »

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Xfce c Sysv
« Ответ #74 : 31.03.2016 06:10:42 »
# cat /etc/os-release
NAME=Slackware
VERSION="14.1"
ID=slackware
VERSION_ID=14.1
PRETTY_NAME="Slackware 14.1"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:14.1"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"

# cat /proc/bus/input/devices
I: Bus=0006 Vendor=0000 Product=0000 Version=0000
N: Name="Speakup"
P: Phys=speakup/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=1000 0 0 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=sysrq kbd event1
B: PROP=0
B: EV=120013
B: KEY=20000 0 20 0 0 0 0 500f 2100002 3803078 f900d401 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=4000 0 0 0 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3
U: Uniq=
H: Handlers=event3
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=3e000b 0 0 0 0 0 0 0

I: Bus=0011 Vendor=0002 Product=0007 Version=25b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio4/input0
S: Sysfs=/devices/platform/i8042/serio4/input/input6
U: Uniq=
H: Handlers=mouse0 event6
B: PROP=1
B: EV=b
B: KEY=6420 0 30000 0 0 0 0 0 0 0 0
B: ABS=11000003

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="HP WMI hotkeys"
P: Phys=wmi/input0
S: Sysfs=/devices/virtual/input/input7
U: Uniq=
H: Handlers=kbd event7
B: PROP=0
B: EV=33
B: KEY=40 0 0 0 10007 0 0 2100400 0 0 0 0
B: MSC=10
B: SW=22
# grep . /sys/devices/LNXSYSTM:00/device:00/*/input/input*/name
/sys/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3/name:Lid Switch
/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2/name:Sleep Button
# grep . /sys/devices/LNXSYSTM:00/device:00/*/input/input*/capabilities/sw
/sys/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3/capabilities/sw:1
/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2/capabilities/sw:0
# cat /proc/acpi/button/lid/C1E9/state
state:      open
# grep -rH 'PNP0C0D:00/input/input3' /var/log
/var/log/messages:Mar 30 17:08:09 salixlive kernel: [   12.282223] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3
/var/log/dmesg:[   12.282223] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3

# cat /etc/acpi/acpi_handler.sh
#!/bin/sh
# Default acpi script that takes an entry for all actions

IFS=${IFS}/
set $@

case "$1" in
  button)
    case "$2" in
      power) /sbin/init 0
         ;;
      *) logger "ACPI action $2 is not defined"
         ;;
    esac
    ;;
  *)
    logger "ACPI group $1 / action $2 is not defined"
    ;;
esac

# cat /etc/acpi/events/default

# This is the ACPID default configuration, it takes all
# events and passes them to /etc/acpi/default.sh for further
# processing.

# event keeps a regular expression matching the event. To get
# power events only, just use something like "event=button power.*"
# to catch it.
# action keeps the command to be executed after an event occurs
# In case of the power event above, your entry may look this way:
#event=button power.*
#action=/sbin/init 0

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

event=.*
action=/etc/acpi/acpi_handler.sh %e

# ls -l /etc/acpi/acpi_handler.sh
-rwxr-xr-x 1 root root 314 июл 10  2013 /etc/acpi/acpi_handler.sh

# ls -l /etc/acpi/events/default
-rw-r--r-- 1 root root 635 июл 10  2013 /etc/acpi/events/default

# acpi_listen
thermal_zone TZ1 00000081 00000000
video C055 00000080 00000000
button/lid C1E9 00000080 00000001
thermal_zone TZ1 00000081 00000000
video C055 00000080 00000000
button/lid C1E9 00000080 00000002
thermal_zone TZ1 00000081 00000000
video C055 00000080 00000000
button/lid C1E9 00000080 00000003

# ls -l /lib/modules/$(uname -r)/kernel/drivers/acpi
итого 168
-rw-r--r-- 1 root root  7555 окт 24  2013 ac.ko
-rw-r--r-- 1 root root  3319 окт 24  2013 acpi_i2c.ko
-rw-r--r-- 1 root root  6306 окт 24  2013 acpi_ipmi.ko
-rw-r--r-- 1 root root 10027 окт 24  2013 acpi_pad.ko
drwxr-xr-x 1 root root    49 сен 23  2014 apei
-rw-r--r-- 1 root root 17180 окт 24  2013 battery.ko
-rw-r--r-- 1 root root  9316 окт 24  2013 button.ko
-rw-r--r-- 1 root root  4566 окт 24  2013 ec_sys.ko
-rw-r--r-- 1 root root  5127 окт 24  2013 fan.ko
-rw-r--r-- 1 root root 43117 окт 24  2013 processor.ko
-rw-r--r-- 1 root root 16155 окт 24  2013 sbs.ko
-rw-r--r-- 1 root root  7119 окт 24  2013 sbshc.ko
-rw-r--r-- 1 root root 15806 окт 24  2013 thermal.ko
-rw-r--r-- 1 root root 22905 окт 24  2013 video.ko
# modinfo button
filename:       /lib/modules/3.10.17-smp/kernel/drivers/acpi/button.ko
license:        GPL
description:    ACPI Button Driver
author:         Paul Diefenbaugh
alias:          acpi*:LNXPWRBN:*
alias:          acpi*:PNP0C0C:*
alias:          acpi*:LNXSLPBN:*
alias:          acpi*:PNP0C0E:*
alias:          acpi*:PNP0C0D:*
depends:       
intree:         Y
vermagic:       3.10.17-smp SMP mod_unload PENTIUMIII
# lsmod|grep button
button                  3704  1 i915
# lsmod|sort
Module                  Size  Used by
ac                      3403  0
ac97_bus                 834  1 snd_ac97_codec
acpi_cpufreq            6310  0
agpgart                22075  3 drm,intel_agp,intel_gtt
b44                    23779  0
battery                 9591  0
bluetooth             192760  24 bnep,btusb,rfcomm
bnep                    8661  2
btusb                  13948  0
button                  3704  1 i915
cfg80211              321151  2 libipw,ipw2200
cpufreq_ondemand        7199  1
drm                   186279  3 i915,drm_kms_helper
drm_kms_helper         31358  1 i915
ehci_hcd               32261  1 ehci_pci
ehci_pci                2884  0
evdev                   7552  8
fan                     1965  0
firewire_core          44166  1 firewire_ohci
firewire_ohci          28780  0
freq_table              2176  3 cpufreq_ondemand,acpi_cpufreq,thermal_sys
fuse                   59945  7
hp_wmi                  6032  0
hwmon                   1021  1 thermal_sys
i2c_algo_bit            4575  1 i915
i2c_core               17388  4 drm,i915,drm_kms_helper,i2c_algo_bit
i915                  508710  2
intel_agp               8680  1 i915
intel_gtt              10512  3 i915,intel_agp
ipv6                  246794  16
ipw2200               128548  0
joydev                  7395  0
lib80211                2997  4 lib80211_crypt_ccmp,lib80211_crypt_tkip,libipw,ipw2200
lib80211_crypt_ccmp     3961  1
lib80211_crypt_tkip     6891  1
libipw                 22256  1 ipw2200
loop                   13468  12
lp                      7199  0
lpc_ich                11413  0
microcode               8880  0
mii                     3335  1 b44
mmc_core               78434  3 ssb,sdhci,sdhci_pci
mperf                    919  1 acpi_cpufreq
ohci_hcd               20924  0
parport                25305  3 lp,ppdev,parport_pc
parport_pc             16728  0
pcmcia                 30709  1 ssb
pcmcia_core            10252  3 pcmcia,pcmcia_rsrc,yenta_socket
pcmcia_rsrc             9184  1 yenta_socket
ppdev                   4710  0
processor              24543  2 acpi_cpufreq
psmouse                72582  0
rfcomm                 27214  8
rfkill                 12610  5 cfg80211,hp_wmi,bluetooth
sdhci                  22430  1 sdhci_pci
sdhci_pci               9552  0
serio_raw               3545  0
snd                    44159  10 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
snd_ac97_codec         89231  1 snd_intel8x0
snd_intel8x0           23649  4
snd_page_alloc          6062  2 snd_intel8x0,snd_pcm
snd_pcm                62870  3 snd_ac97_codec,snd_intel8x0
snd_timer              14870  2 snd_pcm
soundcore               4318  1 snd
sparse_keymap           2542  1 hp_wmi
speedstep_lib           2471  0
squashfs               23196  6
ssb                    45260  1 b44
thermal                 7136  0
thermal_sys            19013  4 fan,video,thermal,processor
tifm_7xx1               3605  0
tifm_core               3761  1 tifm_7xx1
uhci_hcd               19872  0
usb_storage            35263  1
video                  10142  1 i915
wmi                     7059  1 hp_wmi
xhci_hcd               76900  0
yenta_socket           19023  0
# ls -1FR /etc/polkit-1/
/etc/polkit-1/:
localauthority/
localauthority.conf.d/
nullbackend.conf.d/

/etc/polkit-1/localauthority:
10-vendor.d/
20-org.d/
30-site.d/
50-local.d/
90-mandatory.d/

/etc/polkit-1/localauthority/10-vendor.d:

/etc/polkit-1/localauthority/20-org.d:

/etc/polkit-1/localauthority/30-site.d:

/etc/polkit-1/localauthority/50-local.d:
10-org.freedesktop.NetworkManager.pkla
20-plugdev-group-mount-override.pkla

/etc/polkit-1/localauthority/90-mandatory.d:

/etc/polkit-1/localauthority.conf.d:
50-localauthority.conf

/etc/polkit-1/nullbackend.conf.d:
50-nullbackend.conf