{"action":"created","issue":{"url":"https://api.github.com/repos/jaagr/polybar/issues/263","repository_url":"https://api.github.com/repos/jaagr/polybar","labels_url":"https://api.github.com/repos/jaagr/polybar/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/jaagr/polybar/issues/263/comments","events_url":"https://api.github.com/repos/jaagr/polybar/issues/263/events","html_url":"https://github.com/jaagr/polybar/issues/263","id":197078350,"number":263,"title":"Battery with no Adapter \"online\" file","user":{"login":"revoltorb","id":11151943,"avatar_url":"https://avatars.githubusercontent.com/u/11151943?v=3","gravatar_id":"","url":"https://api.github.com/users/revoltorb","html_url":"https://github.com/revoltorb","followers_url":"https://api.github.com/users/revoltorb/followers","following_url":"https://api.github.com/users/revoltorb/following{/other_user}","gists_url":"https://api.github.com/users/revoltorb/gists{/gist_id}","starred_url":"https://api.github.com/users/revoltorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revoltorb/subscriptions","organizations_url":"https://api.github.com/users/revoltorb/orgs","repos_url":"https://api.github.com/users/revoltorb/repos","events_url":"https://api.github.com/users/revoltorb/events{/privacy}","received_events_url":"https://api.github.com/users/revoltorb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-22T02:08:35Z","updated_at":"2016-12-23T03:02:22Z","closed_at":null,"body":"Trying to get this working, it's almost perfect except I'm having trouble with my battery module. It won't start the module if I don't have the file \"online\" in my adapter location but there's no separate battery and adapter devices. There is a \"status\" file which outputs either `Charging` or `Discharging` but I see no way to change the location to look for this instead of \"online\". The exact error I get is:\r\n\r\n`error: Disabling module \"battery\" (reason: The file '/sys/class/power_supply/BAT0/online' does not exist)`\r\n\r\nHere's my config file (hopefully just the relevant parts, I can add more if needed; some of it is left blank since I am in the process of configuring everything but with no working module I can't test):\r\n\r\n```dosini\r\n[module/battery]\r\ntype = internal/battery\r\nbattery = BAT0\r\nadapter = BAT0\r\nfull-at = 89\r\n\r\nformat-charging = <ramp-capacity> <label-charging> \r\nformat-charging-underline = ${colors.red_light}\r\nformat-charging-overline = ${self.format-charging-underline}\r\nlabel-charging = \" %percentage% \"\r\n\r\nformat-discharging = <ramp-capacity> <label-discharging>\r\nformat-discharging-underline = ${self.format-charging-underline}\r\nformat-discharging-overline = ${self.format-charging-underline}\r\ntime-format = %H:%M\r\nlabel-discharging = %time%\r\n\r\nformat-full-prefix = \"  \"\r\nformat-full-prefix-foreground = ${colors.foreground-alt}\r\nformat-full-underline = ${self.format-charging-underline}\r\nformat-full-overline = ${self.format-charging-underline}\r\n\r\nramp-capacity-0 = \r\nramp-capacity-1 = \r\nramp-capacity-2 = \r\nramp-capacity-3 = \r\nramp-capacity-4 = \r\n\r\n; vim:ft=dosini \r\n```\r\n\r\nThis is the contents of my `ls -l /sys/class/power_supply/BAT0/`\r\n\r\n```\r\ntotal 0\r\ndrwxr-xr-x 2 root root    0 Dec 18 08:57 power\r\n-rw-r--r-- 1 root root 4096 Dec 19 19:36 alarm\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 capacity\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 capacity_level\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 charge_full\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 charge_full_design\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 charge_now\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 current_now\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 cycle_count\r\nlrwxrwxrwx 1 root root    0 Dec 21 20:34 device -> ../../../PNP0C0A:00\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 manufacturer\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 model_name\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 present\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 serial_number\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 status\r\nlrwxrwxrwx 1 root root    0 Dec 18 09:18 subsystem -> ../../../../../../class/power_supply\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 technology\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 type\r\n-rw-r--r-- 1 root root 4096 Dec 19 19:36 uevent\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 voltage_min_design\r\n-r--r--r-- 1 root root 4096 Dec 19 19:36 voltage_now\r\n```\r\n\r\nHere's the output of `polybar -vv`\r\n\r\n```polybar 2.4.0-3-gd9de16e-git \r\n\r\nFeatures: +alsa +curl -i3 +mpd +network \r\n\r\nBuild type: Release\r\nCompiler: /usr/bin/c++\r\nCompiler flags: -march=native -O2 -pipe -fstack-protector-strong  -Wall -Wextra -Werror -O3 -pedantic -pedantic-errors -ffunction-sections -fdata-sections\r\nLinker flags:  -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,--gc-sections\r\n\r\nALSA_SOUNDCARD              default\r\nBSPWM_SOCKET_PATH           /tmp/bspwm_0_0-socket\r\nBSPWM_STATUS_PREFIX         W\r\nBUILDER_SPACE_TOKEN         %__\r\nCONNECTION_TEST_IP          8.8.8.8\r\nPATH_ADAPTER                /sys/class/power_supply/%adapter%\r\nPATH_BACKLIGHT_MAX          /sys/class/backlight/%card%/max_brightness\r\nPATH_BACKLIGHT_VAL          /sys/class/backlight/%card%/brightness\r\nPATH_BATTERY                /sys/class/power_supply/%battery%\r\nPATH_CPU_INFO               /proc/stat\r\nPATH_MEMORY_INFO            /proc/meminfo\r\nPATH_TEMPERATURE_INFO       /sys/class/thermal/thermal_zone%zone%/temp\r\n```"},"comment":{"url":"https://api.github.com/repos/jaagr/polybar/issues/comments/268933579","html_url":"https://github.com/jaagr/polybar/issues/263#issuecomment-268933579","issue_url":"https://api.github.com/repos/jaagr/polybar/issues/263","id":268933579,"user":{"login":"revoltorb","id":11151943,"avatar_url":"https://avatars.githubusercontent.com/u/11151943?v=3","gravatar_id":"","url":"https://api.github.com/users/revoltorb","html_url":"https://github.com/revoltorb","followers_url":"https://api.github.com/users/revoltorb/followers","following_url":"https://api.github.com/users/revoltorb/following{/other_user}","gists_url":"https://api.github.com/users/revoltorb/gists{/gist_id}","starred_url":"https://api.github.com/users/revoltorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revoltorb/subscriptions","organizations_url":"https://api.github.com/users/revoltorb/orgs","repos_url":"https://api.github.com/users/revoltorb/repos","events_url":"https://api.github.com/users/revoltorb/events{/privacy}","received_events_url":"https://api.github.com/users/revoltorb/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T03:02:21Z","updated_at":"2016-12-23T03:02:21Z","body":"I have the same results @jarias . Adapter shows up (as `/sys/class/power_supply/AC`) if started while plugged in but not otherwise. Same kernel error on both stock arch kernel and linux-ck. \r\n`ACPI Exception: AE_NOT_FOUND, Error reading AC Adapter state (20160422/ac-128)`"}}
{"actor":{"display_login":"revoltorb"}}