eeepc debian battery alarm perl script

Problems with hardware & laptops not being detected or supported during or after install.
Locked
Marcelo
Posts: 15
Joined: Wed Jul 25, 2012 7:02 pm

eeepc debian battery alarm perl script

Post by Marcelo »

Hi,

I followed the tutorial at http://forum.lxde.org/viewtopic.php?f=5&t=494 but I'm afraid the script is not working for me, with these results when I intend to run it:

Code: Select all

marcelo@elsa:~$ eeepc_battery_alarm.pl 
/usr/bin/eeepc_battery_alarm.pl: line 11: sub: command not found
cat: /proc/acpi/battery/BAT*/state: No such file or directory
/usr/bin/eeepc_battery_alarm.pl: line 12: =: command not found
/usr/bin/eeepc_battery_alarm.pl: line 13: syntax error near unexpected token `('
/usr/bin/eeepc_battery_alarm.pl: line 13: `        @string_plug = split(/\s+/, $plug);'
marcelo@elsa:~$
Zenity is installed. What could it be happening?
Thanks very much.

(Samsumg Series 5 (64amd), Debian Wheezy, Fluxbox).
Last edited by Marcelo on Thu Nov 14, 2013 1:57 am, edited 1 time in total.
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: eeepc debian battery alarm perl script

Post by Rex Bouwense »

I started a new thread for you. You posted to a thread that was almost 4 1/2 years old. It would be unlikely to get meaningful responses. Besides Operating systems change. If you need to add anything feel free to edit your post. The previous thread has been closed.
Rex
Marcelo
Posts: 15
Joined: Wed Jul 25, 2012 7:02 pm

Re: eeepc debian battery alarm perl script

Post by Marcelo »

Thanks very much, Rex.
Regards.
rokytnji
Posts: 131
Joined: Mon Jun 13, 2011 10:45 pm
Location: pecos.tx
Contact:

Re: eeepc debian battery alarm perl script

Post by rokytnji »

Samsumg Series 5 (64amd), Debian Wheezy, Fluxbox).
I usually in Fluxbox run a Battery status in conky on my latops.

http://antix.freeforums.org/701sd-conky ... t2618.html
On this samsung though I am running

Code: Select all

$ inxi -Fxz
System:    Host: biker Kernel: 3.5.0-17-generic x86_64 (64 bit, gcc: 4.7.2) Desktop: MATE 1.4.2  Distro: Linux Mint 14 Nadia
Machine:   Mobo: SAMSUNG model: RV410/RV510/S3510/E3510 Bios: Phoenix version: 02UC.P026.20100916.LX date: 09/16/2010
CPU:       Dual core Pentium CPU T4500 (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 ssse3) bmips: 9177.44 
           Clock Speeds: 1: 1200.00 MHz 2: 1200.00 MHz
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller bus-ID: 00:02.0 
           X.Org: 1.13.0 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz 
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express GLX Version: 2.1 Mesa 9.0.3 Direct Rendering: Yes
Audio:     Card: Intel 82801I (ICH9 Family) HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0 
           Sound: Advanced Linux Sound Architecture ver: 1.0.25
Network:   Card-1: Atheros AR9285 Wireless Network Adapter (PCI-Express) driver: ath9k bus-ID: 06:00.0
           IF: wlan0 state: up mac: <filter>
           Card-2: Marvell 88E8040 PCI-E Fast Ethernet Controller driver: sky2 ver: 1.30 port: 3000 bus-ID: 04:00.0
           IF: eth0 state: down mac: <filter>
Drives:    HDD Total Size: 320.1GB (24.3% used) 1: id: /dev/sda model: SAMSUNG_HM321HI size: 320.1GB 
Partition: ID: / size: 18G used: 4.7G (29%) fs: ext4 ID: /home size: 163G used: 68G (44%) fs: btrfs 
           ID: swap-1 size: 4.19GB used: 0.00GB (0%) fs: swap 
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 47.0C mobo: 47.0C 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 179 Uptime: 1:44 Memory: 913.6/3887.8MB Runlevel: 2 Gcc sys: 4.7.2 
           Client: Shell (bash 4.2.37) inxi: 1.9.13 
Because of ease of use and the gear can handle it.

I sold my eeepcs Rex and bought a couple of American made atom netbooks in their stead.

Anyhows. I went with this
http://antix.freeforums.org/batti-gtk-solved-t4662.html
notification on low and critical battery status
for window managers like fluxbox slit and Icewm toolbar and it works just fine. Just a suggestion. Nothing more.
Good luck and Happy Trails, Rok
Amrel RT 786ex 1.6ghz, 512MB ram , AntiX 8.5 core, Biker Linux user # 475019
Lead,Follow, or get the heck out of the way
My AntiX LXDE Install
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: eeepc debian battery alarm perl script

Post by Rex Bouwense »

Because of ease of use and the gear can handle it.

I sold my eeepcs Rex and bought a couple of American made atom netbooks in their stead.
Now I feel bad. I suppose that it is time for a new computer but the ones I have are working fine (so far). I have not had a complaint (yet) with the ASUS and the old Dell just keeps plugging along. I recently put Bodhi Linux on it and was impressed once again. I guess I live right. Have fun in Pecos. We just left the Rio Grande Valley enroute to Arizona. Enjoy.
Rex
Locked