Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208627 - app-laptop/tp_smapi-0.37 version bump
Summary: app-laptop/tp_smapi-0.37 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Peter Weller (RETIRED)
URL:
Whiteboard:
Keywords:
: 215531 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-02 20:08 UTC by Igor Rafienko
Modified: 2008-04-14 12:12 UTC (History)
6 users (show)

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


Attachments
udev rule for reducing total interrupts on tickless kernels (51-hdaps.rules,144 bytes, text/plain)
2008-02-24 15:01 UTC, Anton Bolshakov
Details
tp_smapi-0.37-r1 (tp_smapi-0.37.ebuild,1.44 KB, text/plain)
2008-03-30 23:27 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Rafienko 2008-02-02 20:08:59 UTC
New version (0.36) is out (as of 2008-01-27)

As compared to 0.33 (latest in portage), the new version includes among other things fixes for T61/X60/X61 laptops and additional functionality in form of cell group voltages.

Simply renaming 0.33-ebuild to 0.36 seems to do the trick.

Reproducible: Always
Comment 1 Anton Bolshakov 2008-02-24 15:01:15 UTC
Created attachment 144506 [details]
udev rule for reducing
total interrupts on tickless kernels

Ping.
Some important code changes are:
- hdaps: Extends the "invert" parameter to cover all possible axis
  orientations.
- Ported to kernel 2.6.24.
- A new version of the hdapsd userspace daemon, which uses the input device
  interface (created via udev) instead of polling sysfs
Comment 2 mulaz 2008-03-06 08:46:43 UTC
this is also the only version I got to work on R61

btw, the ebuild for 0.33 works fine with this version, so there's not much work to do

(In reply to comment #1)
> Created an attachment (id=144506) [edit]
> udev rule for reducing
> total interrupts on tickless kernels
> 
> Ping.
> Some important code changes are:
> - hdaps: Extends the "invert" parameter to cover all possible axis
>   orientations.
> - Ported to kernel 2.6.24.
> - A new version of the hdapsd userspace daemon, which uses the input device
>   interface (created via udev) instead of polling sysfs
> 

Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2008-03-21 20:26:17 UTC
How exactly does the udev rule reduce the total number of ticks?
Comment 4 Igor Rafienko 2008-03-21 20:36:06 UTC
(In reply to comment #3)
> How exactly does the udev rule reduce the total number of ticks?


It does not by itself. 

tp-smapi provides an additional device for raw accelerometer data. That device can be matched by an udev ruled as specified by Anton Bolshakov (and the tp-smapi docs). Newer versions of hdapsd (the daemon that parks the heads) expect this device to exist in order to run. This new hdapsd can in fact read the accelerometer data from the udev input device created by the rule. The combination "new hdapsd" + "2nd input device [from the rule above]" result in fewer interrupts (according to the docs from [50,100] to exactly 50).
Comment 5 Igor Rafienko 2008-03-30 19:13:51 UTC
tp-smapi-0.37 has been released. From the release notes:

- Fix compilation on kernel 2.6.25                                                                 
- hdaps whitelist: changed default orientation of ThinkPad R60, R61, X40, X41.                     
- tp_smapi: Added 3 new read-only battery attributes                                               
  /sys/devices/platform/smapi/BAT?/remaining_running_time_now                                      
    (time remaining according to instantenous power instead of average)                            
  /sys/devices/platform/smapi/BAT?/charging_max_current                                            
    (maximum current allowed during charging)                                                      
  /sys/devices/platform/smapi/BAT?/charging_max_voltage                                            
    (maximum voltage allowed during charging)                                                      
- tp_smapi and README: improved documentation of battery info attributes.                          

Simply renaming the ebuild does the trick.
Comment 6 Peter Weller (RETIRED) gentoo-dev 2008-03-30 22:36:26 UTC
Done!
Comment 7 Anton Bolshakov 2008-03-30 22:59:57 UTC
(In reply to comment #6)
> Done!
> 

Thanks, but how about the udev rules file?
It is an official part of the package now (see manual for more details) and should be installed if "hdaps" flag is enabled.
Please submit it too.

Igor, please re-open the bug.
Comment 8 Anton Bolshakov 2008-03-30 23:27:54 UTC
Created attachment 147757 [details]
tp_smapi-0.37-r1

Fixed typo (see bug 141565) as well:

diff tp_smapi-0.37.ebuild\?rev\=1.1 tp_smapi-0.37.ebuild
43c43
<               linux_info-pkg-setup
---
>               linux-info_pkg_setup
57a58,63
>       if use hdaps; then
>               #  udev rules
>               insinto /etc/udev/rules.d
>               newins ${FILESDIR}/51-hdaps.rules 51-hdaps.rules
>       fi
>
Comment 9 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2008-04-14 12:12:29 UTC
*** Bug 215531 has been marked as a duplicate of this bug. ***