Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409621 - media-tv/gentoo-vdr-scripts - acpi-wakeup.sh uses wrong PROC_ALARM for kernel version >= 2.6.22
Summary: media-tv/gentoo-vdr-scripts - acpi-wakeup.sh uses wrong PROC_ALARM for kernel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-25 11:16 UTC by Christoph Diesch
Modified: 2012-03-31 21:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for acpi-wakeup.sh (gentoo-vdr-scripts-acpi.patch,321 bytes, patch)
2012-03-25 11:16 UTC, Christoph Diesch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Diesch 2012-03-25 11:16:08 UTC
Created attachment 306591 [details, diff]
patch for acpi-wakeup.sh

/usr/sbin/acpi-wakeup.sh uses PROC_ALARM="/proc/acpi/alarm". Since 2.6.22, this file has been moved to /sys/class/rtc/rtc0/wakealarm. acpi-wakeup.sh therefor no longer works.
Comment 1 Joerg Bornkessel (RETIRED) gentoo-dev 2012-03-31 21:08:36 UTC
acpi = rtc ?

your patch is wrong, 
this will mix the acpi rtc shutdown handling

/sys/class/rtc/rtc0/wakealarm
is still handled by
WAKEUP_METHOD="rtc"
--> /usr/sbin/rtc-wakeup.sh

anyway, 
thanks to point me for the depricated acpi in kernel
i added for now a warning message/logger to the g-v-s

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-vdr-scripts.git;a=summary

will remove the acpi shutdown handling later, if the (marked as depricated) acpi is finaly removed from the kernel

fixed in gentoo-vdr-scripts git
will released in next g-v-s version