You are not logged in.

#1 2015-07-30 02:35:57

james_dickerson
Member
Registered: 2015-07-30
Posts: 3

i3status No battery issue. NOT a path issue.

I am using i3 as a window manager and the status bar will display the battery properly if I'm logged in as root; however, if I am logged in as a user, then I get the 'No battery' issue. I've copied the .i3status.conf from the ~/ to /home/{user} and got the same. I changed the permissions to .i3status.conf to 777 and still the same issue. The only answer to the problem I've found by searching has been to make sure the path to uevent is correct, and that is obviously not my problem since it works as root. Any help would be greatly appreciated. Thanks.

Offline

#2 2015-07-30 03:45:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: i3status No battery issue. NOT a path issue.

Welcome to Arch Linux.

First off, <soapbox mode> I will not help if the intent is to run Xorg as root</soapbox mode>  Fortunately, I do not think this is your intent smile

What is the output (as a mortal user) of cat /sys/class/power_supply/BAT0/uevent
What  are the permissions of that file?   ls -l /sys/class/power_supply/BAT0/uevent

Last edited by ewaller (2015-07-30 03:45:19)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-07-30 12:24:11

james_dickerson
Member
Registered: 2015-07-30
Posts: 3

Re: i3status No battery issue. NOT a path issue.

Yes, it works find for root.

cat /sys/class/power_supply/BATA/uevent

gives me:
POWER_SUPPLY_NAME=BATA
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MINDESIGN=10650000
POWER_SUPPLY_VOLTAGE_NOW=12222000
POWER_SUPPLY_ENERGY_FULL_DESIGN=91050000
POWER_SUPPLY_ENERGY_FULL=79310000
POWER_SUPPLY_ENERGY_NOW=79310000
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=CF-VZSU46
POWER_SUPPLY_MANUFACTURER=Panasonic
POWER_SUPPLY_SERIAL_NUMBER=00452

and ls -l /sys/class/power_supply/BATA/uevent

gives me:
-rw-r--r-- 1 root root 4.OK Jul 29 22:49 /sys/class/power_supply/BATA/uevent

Offline

#4 2015-07-30 12:48:38

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: i3status No battery issue. NOT a path issue.

james_dickerson wrote:

and ls -l /sys/class/power_supply/BATA/uevent

gives me:
-rw-r--r-- 1 root root 4.OK Jul 29 22:49 /sys/class/power_supply/BATA/uevent

Is that a cut-n-paste?  Am I so out of the loop that I've never seen 4.OK as a size?

Last edited by oliver (2015-07-30 12:48:59)

Offline

#5 2015-07-30 13:18:16

james_dickerson
Member
Registered: 2015-07-30
Posts: 3

Re: i3status No battery issue. NOT a path issue.

Technically no, I typed it onto another computer, but it's exactly right verbatim.

Offline

#6 2015-07-30 14:29:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: i3status No battery issue. NOT a path issue.

james_dickerson wrote:

Yes, it works find for root.

cat /sys/class/power_supply/BATA/uevent

gives me:...

That is nice, but I asked if you could do that as a normal user.   Also, I would not expect it to to be BATA, I would have expected BAT0.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB