narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
tuxd3v has joined #linux-amlogic
vagrantc has quit [Ping timeout: 258 seconds]
BorgCuba has quit [Quit: Leaving]
TheAssassin has quit [Ping timeout: 240 seconds]
TheAssassin has joined #linux-amlogic
kaspter has joined #linux-amlogic
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 256 seconds]
camus is now known as kaspter
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-amlogic
bengal has quit [Ping timeout: 240 seconds]
bengal has joined #linux-amlogic
vagrantc has joined #linux-amlogic
vagrantc has quit [Client Quit]
Barada has joined #linux-amlogic
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
_whitelogger has joined #linux-amlogic
camus has joined #linux-amlogic
kaspter has quit [Remote host closed the connection]
camus is now known as kaspter
Barada has quit [Quit: Barada]
buzzmarshall has quit [Remote host closed the connection]
Barada has joined #linux-amlogic
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
_whitelogger has joined #linux-amlogic
asdf28 has joined #linux-amlogic
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 260 seconds]
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 260 seconds]
camus is now known as kaspter
sputnik__ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
Anessen97_0 has quit [Quit: The Lounge - https://thelounge.chat]
ldevulder_ is now known as ldevulder
camus has joined #linux-amlogic
camus has quit [Client Quit]
kaspter has quit [Ping timeout: 260 seconds]
<asdf28> when i turn off my android box using the remote, it enters a type of "suspend" state where the status light turns from blue to red, and it can be woken up again using the remote. is this possible on a generic linux system? or is this android specific?
sputnik_ has quit [Remote host closed the connection]
<asdf28> i tried "systemctl suspend" but the remote wasn't able to wake it up
Barada has quit [Quit: Barada]
sputnik_ has joined #linux-amlogic
<narmstrong> asdf28: it’s feasible but not easy
<narmstrong> In short: the wakup sources are hard coded in the binary loaded at boot
sputnik_ has quit [Ping timeout: 246 seconds]
<asdf28> could you make the remote act as a keyboard and use it that way as a wakeup source?
buzzmarshall has joined #linux-amlogic
<asdf28> i'm still struggling to register the remote correctly
<asdf28> this is a lot harder than i thought
<asdf28> i got as far as making it register keypresses when i test it using "ir-keytable -t"
<asdf28> so it seems to register KEY_LEFT when i press left, but it won't move the cursor left in a text editor as i hoped
asdf28 has quit [Ping timeout: 260 seconds]
asdf28 has joined #linux-amlogic
cmeerw has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
yann has quit [Ping timeout: 256 seconds]
yann has joined #linux-amlogic
<chewitt> asdf28 the IR wake code is in bl301 which is part of the boot FIPs (early boot firmware)
<chewitt> most original "ROM" images should have this set correctly for the remote/box
vagrantc has joined #linux-amlogic
<chewitt> but if you've been using non-original ROMs, it might boot but be set for some other IR hardware
<chewitt> and sometimes the box is a clone with another box's software
<chewitt> (the usual Android dice roll)
<chewitt> configuring ir-keytable stuff should be fairly simple
<chewitt> but when you 'suspend' everything falls back to the boot code, userspace cannot do anything
ldevulder has quit [Ping timeout: 240 seconds]
<asdf28> thanks chewitt
<chewitt> on x86 hardware you can often set a USB port so that keypress/mouse sends a wake signal, but there's nothing like this
<asdf28> so if i'm booting from an SD card image that relies on the android boot firmware, it could work?
<asdf28> this is confusing
<chewitt> if you're booting the original Android ROM on emmc, and that is correct for the box, it should work
<chewitt> original Android boot firmware (not ROM)
<chewitt> the only thing you'd need to do is create the IR keymap so that KEY_POWER sends the box into suspend
<asdf28> is "systemctl suspend" the same as suspend under android?
<asdf28> hardware wise?
<chewitt> it might depend on the kernel config (defconfig) but I'd expect it to be fairly simple to get into suspend/sleep mde
<chewitt> mode
<asdf28> i can suspend it using systemctl suspend, it just won't wake up anymore
<asdf28> how would you do that, use KEY_POWER to suspend it?
<asdf28> it does recognize the keycodes
<asdf28> when i use the test app
<asdf28> but i don't know how to make the keycodes actually do something
<chewitt> if it doesn't wake, the wrong IR code is hard-coded in the boot firmware
<chewitt> it happens :)
<asdf28> when the box is suspended on android, the LED turns red, but on generic linux, it stays blue
<asdf28> but the screen does turn off
<asdf28> i thought maybe that's two different kinds of suspend mode, who knows
<chewitt> probably doesn't have the right bits set in device-tree
<chewitt> to toggle the LED back to red
ldevulder has joined #linux-amlogic
<asdf28> well that's interesting to know at least
<asdf28> that the remote wakeup code is in the firmware
nickotheus has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 265 seconds]
nickotheus has quit [Quit: Leaving]
nickotheus has joined #linux-amlogic
cottsay has quit [Ping timeout: 260 seconds]
cottsay has joined #linux-amlogic
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
asdf28 has quit [Ping timeout: 258 seconds]
nickotheus has quit [Remote host closed the connection]
cmeerw has quit [Ping timeout: 258 seconds]