[+] Usuwanie kamery internetowej Acer Webcam
: 13 grudnia 2008, 17:04
Witam,
Zainteresowałem się tematem ograniczania ilości uzywanej energii podczas pracy na baterii. Okazało się, że moja kamera jedzie cały czas na 100%. Oto wynik powertop:
W związku z tym, że wogóle jej nie używam, chciałbym się dowiedzieć jak ją całkowicie wyłączyć? Próbowałem przez
ale nie pomaga.
EDIT
W końcu sobie poradziłem. Skompilowałem sobie nowe jajo. Później do gruba dopisałem:
a następnie do udev.rules dodałem to:
Od tej pory wszystkie urządzenia spod
są na AUTO, czyli moja kamera jest wyłączona wtedy kiedy jej nie trzeba ;-)
Zainteresowałem się tematem ograniczania ilości uzywanej energii podczas pracy na baterii. Okazało się, że moja kamera jedzie cały czas na 100%. Oto wynik powertop:
lsusb:debian:/home/zbyszek# powertop -d
PowerTOP 1.10 (C) 2007, 2008 Intel Corporation
Zbieranie danych przez 15 sekund
Cn Avg residency
C0 (CPU aktywny) (53,2%)
polling 0,0ms ( 0,0%)
C1 3,8ms (46,8%)
P-states (frequencies)
1,91 GHz 0,0%
1,80 GHz 0,0%
1,60 GHz 0,0%
800 MHz 100,0%
Wakeups-from-idle per second : 123,7 interval: 15,0s
Użycie zasilania (szacunek ACPI): 24,2W (1,3 godzin)
Top causes for wakeups:
36,7% (188,3) adesklets : schedule_timeout (process_timeout)
24,3% (124,9) <interrupt> : extra timer interrupt
19,6% (100,6) <interrupt> : eth0
5,6% ( 28,7) python : schedule_timeout (process_timeout)
3,8% ( 19,5) <interrupt> : acpi
3,7% ( 18,9) firefox-bin : futex_wait (hrtimer_wakeup)
1,9% ( 9,7) <interrupt> : wifi0
1,9% ( 9,6) <interrupt> : ide0
0,3% ( 1,7) gnome-terminal : schedule_timeout (process_timeout)
0,2% ( 1,0) nm-applet : schedule_timeout (process_timeout)
0,2% ( 1,0) dhcdbd : schedule_timeout (process_timeout)
0,2% ( 1,0) <kernel core> : ath_newstate (ath_calibrate)
0,2% ( 1,0) Xorg : nv_start_rc_timer (nv_kern_rc_timer)
0,2% ( 0,9) <interrupt> : nvidia
0,2% ( 0,9) <kernel IPI> : Rescheduling interrupts
0,2% ( 0,9) python : do_setitimer (it_real_fn)
0,2% ( 0,9) <kernel core> : cpucache_init (delayed_work_timer_fn)
0,1% ( 0,5) hald-addon-stor : schedule_timeout (process_timeout)
0,1% ( 0,5) <kernel core> : __enqueue_rt_entity (sched_rt_period_timer)
0,1% ( 0,4) gnome-panel : schedule_timeout (process_timeout)
0,1% ( 0,3) hald : schedule_timeout (process_timeout)
0,1% ( 0,3) nautilus : schedule_timeout (process_timeout)
0,1% ( 0,3) <kernel core> : neigh_table_init_no_netlink (neigh_periodic_timer)
0,0% ( 0,2) init : schedule_timeout (process_timeout)
0,0% ( 0,2) mapping-daemon : schedule_timeout (process_timeout)
0,0% ( 0,2) <kernel module> : neigh_table_init_no_netlink (neigh_periodic_timer)
0,0% ( 0,2) ifconfig : __netdev_watchdog_up (dev_watchdog)
0,0% ( 0,1) nmbd : schedule_timeout (process_timeout)
0,0% ( 0,1) ifconfig : nv_open (nv_do_stats_poll)
0,0% ( 0,1) <interrupt> : PS/2 keyboard/mouse/touchpad
0,0% ( 0,1) Xorg : schedule_timeout (process_timeout)
0,0% ( 0,1) cron : do_nanosleep (hrtimer_wakeup)
0,0% ( 0,1) <kernel core> : addrconf_verify (addrconf_verify)
0,0% ( 0,1) <kernel module> : ieee80211_node_attach (ieee80211_node_timeout)
A USB device is active 100,0% of the time:
USB device 3-3 : Acer CrystalEye webcam (SuYin)
Suggestion: Enable USB autosuspend by pressing the U key or adding
usbcore.autosuspend=1 to the kernel command line in the grub config
Podpowiedź: włącz zarządzanie zasilaniem łącza SATA ALPM przez:
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
lub naciśnij klawisz S.
Podpowiedź: włącz opcję noatime systemu plików wykonując poniższe polecenie:
mount -o remount,noatime / lub przez naciśnięcie klawisza T
noatime wyłącza stały czas dostępu do plików, który powoduje dużo operacji wejścia/wyjścia dysku.
Suggestion: Disable 'hal' from polling your cdrom with:
hal-disable-polling --device /dev/cdrom 'hal' is the component that auto-opens a
window if you plug in a CD but disables SATA power saving from kicking in.
Recent USB suspend statistics
Active Device name
100,0% USB device 3-3 : Acer CrystalEye webcam (SuYin)
0,0% USB device usb4 : EHCI Host Controller (Linux 2.6.26-1-amd64 ehci_hcd)
100,0% USB device usb3 : EHCI Host Controller (Linux 2.6.26-1-amd64 ehci_hcd)
0,0% USB device usb2 : OHCI Host Controller (Linux 2.6.26-1-amd64 ohci_hcd)
0,0% USB device usb1 : OHCI Host Controller (Linux 2.6.26-1-amd64 ohci_hcd)
Zainteresowałem się tym tematem . Niestety, żadna z wymienionych porad nie pomaga. Kamera jedzie cały czas na 100%.debian:/home/zbyszek# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 064e:a101 Suyin Corp. Laptop integrated WebCam
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
W związku z tym, że wogóle jej nie używam, chciałbym się dowiedzieć jak ją całkowicie wyłączyć? Próbowałem przez
Kod: Zaznacz cały
rmmod uvcvideoEDIT
W końcu sobie poradziłem. Skompilowałem sobie nowe jajo. Później do gruba dopisałem:
Kod: Zaznacz cały
usbcore.autosuspend=1Kod: Zaznacz cały
SUBSYSTEMS=="usb", ACTION=="add", ATTR{power/level}="auto" Kod: Zaznacz cały
/sys/bus/usb/devices/*/power/level