alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - https://gitlab.freedesktop.org/panfrost - Logs https://freenode.irclog.whitequark.org/panfrost - Discord Discard
stikonas has quit [Remote host closed the connection]
<alyssa> thefloweringash: I think you've found it ;)
<alyssa> Sound:
<alyssa> You need the alsa ucm files from the ChromeOS tree, shove those in /opt/alsa/ucm (there are notes somewhere for how to do that),
<alyssa> Use pulseaudio
<alyssa> On start (well, when you need headphones anyway), you load that ucm file and then use amixer to unmute the headphones
<alyssa> https://rosenzweig.io/audifonos takes care of that
<alyssa> Meanwhile, to select between headphones and internal, tbh I've been manually changing the device=hw:0,0 to 0,2 for speakers/headphones respectively, and reloading pulse. Probably a better way to do it but I didn't look too hard.
<alyssa> Sleep: I don't use it, not sure.
<alyssa> Disabling inputs: I do it manually with xinput if I care about that. I think the trackpad automagically disables on a ChromeOS kernel. Keyboard is something like
<alyssa> "xinput --disable 'Virtual core XTEST keyboard'" I'm guessing, or --enable to go back. Probably a way to hook that into events from whereever, but I haven't tried
<alyssa> "xinput --disable 'Atmel maXTouch Touchscreen'" I use regularly when I'm using the pen, so I get perfect palm rejection a la Wacom tablets (I have that baked into a shellscript that starts Krita/Inkscape so I don't think about it)
<alyssa> All of the above is on CrOS kernel. I'll be trying out mainline Soon. Audio is rumoured to be problematic (even beyond the above hacks)
<thefloweringash> Interesting to compare notes:
<thefloweringash> My sound works out of the box on the speakers, but I've never convinced pulse load the ucm files from either chromeos, or arch. I didn't have much luck driving alsaucm directly either.
<thefloweringash> For sleep, it mostly works, but eventually it'll wake without a display. Then it's pretty sad, if it sleeps again it won't come back at all.
<thefloweringash> For tablet mode, I hacked up a userland utility based on someone's c100p tweaks that compares the accelerometer in the lid to the one in the base to determine the angle, and infer the mode. It's probably duplicating some kernel or platform code, but I haven't yet found the right way to consume this, or even where it is.
<thefloweringash> This is on ChromeOS kernel 4.4.163, with Arch's config.
<thefloweringash> There are a few other small touches I've made too, like rendering a regular proportional font at 192 dpi for my console, so I can read the luks prompt without hurting my eyes. It'd be nice to share some of these efforts.
<alyssa> thefloweringash: (Speakers sound works out of the box here too, it's headphones the drama is needed for)
<alyssa> The alsaucm stuff should work. But maybe you missed a step compared to me (I don't know if the process is documented anywhere besides word-of-mouth, hehe)
<alyssa> Woah woah woah wait, there's an accelerometer in this thing?!
<thefloweringash> not one, but two! and a gyro, I think
<thefloweringash> check /sys/bus/iio/devices/*/name
<alyssa> Yeah I was playing with that a moment ago
<alyssa> And neeeat
<alyssa> Why did nobody tell _me_ that?! :p
<alyssa> Gyro doesn't seem to work?
<alyssa> Maybe needs some config
<alyssa> Ah had to enable it
<alyssa> (cat 25000 > frequency)
<alyssa> Aaaaaaa this is so cool
<alyssa> thefloweringash: brb, trying to figure out some useless application of an accelerometer ^_^
<thefloweringash> Light saber noises
<Ashy> detect low caffeine levels with it (by sensing less tapping on the desk...)
<Ashy> $ notify-send "WARNING - LOW CAFFEINE LEVELS. DRINK COFFEE NOW"
<alyssa> thefloweringash: Nyao
<alyssa> Ashy: Pff
<alyssa> Herbal tea only, thank you very much ;)
<urjaman> :)
<Ashy> hehe, drinking a rooibos atm
<urjaman> oh, that would be about the only tea i've had that i'd rather skip
<alyssa> It's just
<alyssa> I need my sleep :P
<alyssa> BTW, can anyone recommend a GitLab instance that's open for general free sw projects (out of scope for fd.o), runs the free version of GitLab, and is reliable/trustworthy/fast/etc?
<NeuroScr> gitgud.io
<HdkR> Wow, that meme name made me investigate it purely because it seemed like it would be a fake link
<alyssa> NeuroScr: The project's name is Sapphire. It'd just be asking for trouble :p
<NeuroScr> how so?
<alyssa> The group behind gitgud.io is named Sapphire
<alyssa> :P
<NeuroScr> Sapphire is asking for trouble? I don’t get the joke
<alyssa> Hm?
<NeuroScr> They host some of their sites on a network I manage, seem like decent people
<alyssa> No, the project I'm trying to migrate to gitlab is also named Sapphire :P
<NeuroScr> oh, hahah
<NeuroScr> I missed that somehow
<hanetzer> rename it to emerald :P
<alyssa> hanetzer: There are compelling reasons to name it Sapphire that don't have to do with Pokemon, thank you very much :p
<hanetzer> alyssa: hey, could have suggested ruby :P
<urjaman> lol
<hanetzer> and I wasn't thinking pokemon btw, just gemstones :)
<alyssa> I rest my case.
<HdkR> Ruby
<HdkR> Ruby on Ruby on Rails
<hanetzer> rename it sephiroth :P
<Ashy> i've been meaning to sign up for sr.ht
<Ashy> it's not gitlab though
<hanetzer> yeah. ddevaults thing right?
<Ashy> yeah
<alyssa> HdkR: Oh I forgot Ruby existed
<HdkR> Hopefully everyone can forget about it some day
<TheCycoONE> thefloweringash: also recommend the dummy pulseaudio device to fix the volume levels. I documented it in the arch wiki, so you probably saw it
<TheCycoONE> for the accelerometer - well I used it to play neverball on my thinkpad 10 years ago... no arm packages available on arch, but it does compile and play on kevin.
<TheCycoONE> I didn't try to get the accelerometer working for it yet
<alyssa> Cute
_whitelogger has joined #panfrost
_whitelogger has quit [Ping timeout: 268 seconds]
_whitelogger has joined #panfrost
_whitelogger has joined #panfrost
cwabbott has quit [Remote host closed the connection]
cwabbott has joined #panfrost
BenG83 has joined #panfrost
BenG has joined #panfrost
BenG83 has quit [Remote host closed the connection]
stikonas has joined #panfrost
stikonas has quit [Remote host closed the connection]
unoccupied has joined #panfrost
unoccupied is now known as _4of7
_4of7 is now known as leah
leah has quit [Client Quit]
BenG has quit [Quit: Leaving]
TheCycoONE has quit [Ping timeout: 250 seconds]
TheCycoONE has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
stikonas has joined #panfrost
davidlt_ has joined #panfrost
davidlt has quit [Read error: Connection reset by peer]
davidlt_ is now known as davidlt
BenG83 has joined #panfrost
stikonas has quit [Ping timeout: 252 seconds]
stikonas has joined #panfrost