{"action":"created","issue":{"url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/3","labels_url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/3/comments","events_url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/3/events","html_url":"https://github.com/teleshoes/tpacpi-bat/issues/3","id":11323772,"number":3,"title":"Thinkpad L430 - unable to set thresholds","user":{"login":"jseplae","id":3680606,"avatar_url":"https://avatars.githubusercontent.com/u/3680606?v=3","gravatar_id":"","url":"https://api.github.com/users/jseplae","html_url":"https://github.com/jseplae","followers_url":"https://api.github.com/users/jseplae/followers","following_url":"https://api.github.com/users/jseplae/following{/other_user}","gists_url":"https://api.github.com/users/jseplae/gists{/gist_id}","starred_url":"https://api.github.com/users/jseplae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseplae/subscriptions","organizations_url":"https://api.github.com/users/jseplae/orgs","repos_url":"https://api.github.com/users/jseplae/repos","events_url":"https://api.github.com/users/jseplae/events{/privacy}","received_events_url":"https://api.github.com/users/jseplae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2013-02-23T18:59:22Z","updated_at":"2016-01-16T22:20:26Z","closed_at":"2013-02-23T23:23:49Z","body":"Hello, I'm reposting my issue here (from archlinux forums):\r\nhttps://bbs.archlinux.org/viewtopic.php?id=158610\r\n\r\nperl /usr/lib/perl5/vendor_perl/tpacpi-bat -v stopChargeThreshold 0 80\r\nCall    : \\_SB.PCI0.LPC.EC.HKEY.BCSS 0x50\r\nResponse: Error: AE_NOT_FOUND\r\n\r\njournalctl:\r\nkernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND\r\n\r\nThis is on standard 3.7.9-1 kernel. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/comments/172263823","html_url":"https://github.com/teleshoes/tpacpi-bat/issues/3#issuecomment-172263823","issue_url":"https://api.github.com/repos/teleshoes/tpacpi-bat/issues/3","id":172263823,"user":{"login":"hollunder","id":8207622,"avatar_url":"https://avatars.githubusercontent.com/u/8207622?v=3","gravatar_id":"","url":"https://api.github.com/users/hollunder","html_url":"https://github.com/hollunder","followers_url":"https://api.github.com/users/hollunder/followers","following_url":"https://api.github.com/users/hollunder/following{/other_user}","gists_url":"https://api.github.com/users/hollunder/gists{/gist_id}","starred_url":"https://api.github.com/users/hollunder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollunder/subscriptions","organizations_url":"https://api.github.com/users/hollunder/orgs","repos_url":"https://api.github.com/users/hollunder/repos","events_url":"https://api.github.com/users/hollunder/events{/privacy}","received_events_url":"https://api.github.com/users/hollunder/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T22:20:26Z","updated_at":"2016-01-16T22:20:26Z","body":"Hi there. After quite some searching I found this bug report. The problem does not seem to be fixed in any general sense. Some things changed since 2013, which makes things harder for users to reproduce. Here is what I had to do for my L520 on Arch Linux.\r\n\r\ninstall acpica (Version used: 20151218)\r\n\r\n```\r\n$ sudo acpidump -b -o dsdt.aml\r\n```\r\n(uncertain whether the -o had any sensible effect, dsdt.aml was empty but a lot of other files were generated)\r\n\r\n```\r\n$ iasl -d dsdt.dat\r\nIntel ACPI Component Architecture\r\nASL+ Optimizing Compiler version 20151218-64\r\nCopyright (c) 2000 - 2015 Intel Corporation\r\n\r\nInput file dsdt.dat, Length 0xD170 (53616) bytes\r\nACPI: DSDT 0x0000000000000000 00D170 (v02 LENOVO TP-8G    00001230 INTL 20060912)\r\nPass 1 parse of [DSDT]\r\nPass 2 parse of [DSDT]\r\nParsing Deferred Opcodes (Methods/Buffers/Packages/Regions)\r\n\r\nParsing completed\r\n\r\nFound 3 external control methods, reparsing with new information\r\nPass 1 parse of [DSDT]\r\nPass 2 parse of [DSDT]\r\nParsing Deferred Opcodes (Methods/Buffers/Packages/Regions)\r\n\r\nParsing completed\r\nDisassembly completed\r\nASL Output:    dsdt.dsl - 438971 bytes\r\n\r\niASL Warning: There were 3 external control methods found during\r\ndisassembly, but additional ACPI tables to resolve these externals\r\nwere not specified. The resulting disassembler output file may not\r\ncompile because the disassembler did not know how many arguments\r\nto assign to these methods. To specify the tables needed to resolve\r\nexternal control method references, the -e option can be used to\r\nspecify the filenames. Note: SSDTs can be dynamically loaded at\r\nruntime and may or may not be available via the host OS.\r\nExample iASL invocations:\r\n    iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml\r\n  }\r\n    iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml\r\n    iasl -e ssdt*.aml -d dsdt.aml\r\n\r\nIn addition, the -fe option can be used to specify a file containing\r\ncontrol method external declarations with the associated method\r\nargument counts. Each line of the file must be of the form:\r\n    External (<method pathname>, MethodObj, <argument count>)\r\nInvocation:\r\n    iasl -fe refs.txt -d dsdt.aml\r\n```\r\n```\r\n$ cat dsdt.dsl | grep \\\\\\\\_SB.PCI.*HKEY -o | uniq\r\n\\_SB.PCI0.LPCB.EC.HKEY\r\n```\r\n```\r\n$ sudo vim /usr/bin/tpacpi-bat\r\n```\r\nEdit line 401:\r\n```\r\n  my $aslBase = `cat $psdev`;\r\n```\r\nto:\r\n```\r\n  my $aslBase = \"\\_SB.PCI0.LPCB.EC.HKEY\";\r\n```\r\nOtherwise $aslBase would end up being \"\\_SB.HKEY\".\r\n"}}