buggNewSense GNU/Linux - Bugs: bug #32183, RFP: acpi for Yeeloong

 
 

bug #32183: RFP: acpi for Yeeloong

Submitter:  Sam Geeraerts <samgee>
Submitted:  Wed 19 Jan 2011 09:43:55 PM UTC
   
 
Category:  gNewSense 3 Severity:  2 - Minor
Item Group:  mipsel Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 12 Feb 2014 12:19:15 AM UTC, comment #2: 

I use a small script to display my battery status on screen, when not running X. It displays in my GNU Screen hardstatus line. The shell script looks like this:-

#!/bin/bash

cat /sys/class/power_supply/yeeloong-bat/charge_now | cut -f 2 -d \|

Within my .screenrc file I have added:-

hardstatus on
backtick 1 1 0 $HOME/bin/my-battery.sh
hardstatus alwayslastline "%{=b}%{y}%c %Y-%m-%d%{m} / %1` / %{B}%-Lw%{c}%50>%n%f* %t%{-}%+Lw%<"

Hopefully this may benefit some.

David Pettifor <djp>
Wed 23 Feb 2011 12:30:54 PM UTC, comment #1: 

It would be nice to have APM support in the kernel so that battery status can be known:

$ apm
No APM support in kernel

Lars Noodén <larsnooden>
Wed 19 Jan 2011 09:43:55 PM UTC, original submission:  

Linux(-libre) > 2.6.32 no longers provides an APM interface and the acpi is also not available on the Yeeloong. This makes it inconvenient to check battery status from the command line.

A quick test shows that Lenny's acpi package builds and runs on the Yeeloong. The only change required is adding mipsel to the architecture list.

Battery status can currently be checked with GNOME's battery monitor, GKrellM or via /sys/class/power_supply/.

Sam Geeraerts <samgee>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by djp (Posted a comment)
  • -email is unavailable- added by pcfe
  • -email is unavailable- added by larsnooden (Posted a comment)
  • -email is unavailable- added by samgee (Submitted the item)
  • -email is unavailable- added by samgee (Richard Stallman uses the command line a lot)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-07 pcfe Carbon-Copy- Added -email is unavailable-
    2011-01-19 samgee Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code