#
…

2023-12-22

00:00matteo has quit [Ping timeout: 480 seconds]
00:00vLily9 has quit [Remote host closed the connection]
00:06zumi_ has joined #asahi-alt
00:07zumi has quit [Remote host closed the connection]
00:10matteo has joined #asahi-alt
00:11zumi_ is now known as zumi
00:18matteo has quit [Ping timeout: 480 seconds]
00:30matteo has joined #asahi-alt
00:38matteo has quit [Ping timeout: 480 seconds]
00:47matteo has joined #asahi-alt
00:55matteo has quit [Ping timeout: 480 seconds]
01:04matteo has joined #asahi-alt
01:23jeisom has quit [Quit: Leaving]
01:40jeisom has joined #asahi-alt
02:10kidplayer666 has joined #asahi-alt
02:11matteo has quit [Ping timeout: 480 seconds]
02:17mcint has joined #asahi-alt
02:21matteo has joined #asahi-alt
02:51jeisom has quit [Ping timeout: 480 seconds]
03:12vLily9 has joined #asahi-alt
03:14kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
03:15kdb424 has joined #asahi-alt
03:29matteo has quit [Ping timeout: 480 seconds]
03:29vLily9 has quit [Remote host closed the connection]
03:38matteo has joined #asahi-alt
04:07pthariensflame has joined #asahi-alt
04:13possiblemeatball has quit [Quit: Quit]
04:22kidplayer666 has quit [Quit: Connection closed for inactivity]
04:25pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
04:45matteo has quit [Ping timeout: 480 seconds]
04:53matteo has joined #asahi-alt
05:11matteo has quit [Ping timeout: 480 seconds]
05:27matteo has joined #asahi-alt
05:35matteo has quit [Ping timeout: 480 seconds]
05:46matteo has joined #asahi-alt
05:46billak has joined #asahi-alt
06:02billak has quit [Quit: Konversation terminated!]
06:04zumi_ has joined #asahi-alt
06:04zumi has quit [Remote host closed the connection]
06:05matteo has quit [Ping timeout: 480 seconds]
06:09zumi_ is now known as zumi
06:14matteo has joined #asahi-alt
07:12tpw_rulesso i've got the speaker stuff running under nixos (w/ official versions and configs) but it only works if i manually start speakersafetyd after logging into plasma. if it starts during boot, then plasma shows me no audio devices until i stop it. once i start it everything works again
07:12tpw_rulesdoes anybody happen to have any clues?
07:12tpw_rulesalsa-info shows identical info in both broken and working cases
07:20Glanzmann has joined #asahi-alt
07:21Glanzmanntpw_rules: Nope, but I have the same issue with Debian with the version I packages approx. around Nov 11 2023. I'll spend the next day to get on par regarding the audio stuff with Debian. So if you find anything out, please let me know, I'll do the same.
07:22leiotpw_rules: the autostart from udev works only with systemd: https://github.com/AsahiLinux/speakersafetyd/blob/main/95-speakersafetyd.rules
07:25leioand assumes your package installs the rule and the service file (make install)
07:26leiochadmed: the speakersafetyd ebuild shouldn't have a systemd USE flag, as it's only used to install openrc service when it's not set - openrc and systemd service files ought to be installed unconditionally when there's no extra deps (and there are eclasses to figure out where to install service files instead of upstream pkg-config variable checks)
07:27leio(maybe one day I'll manage to get that far that I can send a bunch of PRs, that day is not yet today :( )
07:33kidplayer666 has joined #asahi-alt
08:41cow123 has quit [Ping timeout: 480 seconds]
08:45cow123 has joined #asahi-alt
09:22vLily9 has joined #asahi-alt
09:22vLily9 has quit [Remote host closed the connection]
09:23matteo has quit [Ping timeout: 480 seconds]
09:25Glanzmann has quit [Quit: EOF]
09:28matteo has joined #asahi-alt
09:36matteo has quit [Ping timeout: 480 seconds]
09:46stintelhmmm I'm having trouble charging :/
09:46stintelplugged in but still discharging - tried 3 different power supplies that all worked fine before
09:46j`eyhavent change any sysfs settings?
09:47stintelI have the udev rule: SUBSYSTEM=="power_supply", KERNEL=="macsmc-battery", ATTR{charge_control_end_threshold}="80"
09:47stinteland I changed that to 100 because I'm traveling today, so I can have a full battery when I leave
09:48jannegstintel: that will result in discharging if you're over 80%
09:48stinteljanneg: I set it to 100 manually
09:50stintelhmm, the udev rule seems to instantly set that back to 80
09:51stintelI changed the udev rule, it's at 100 now
09:51j`eyweird, I would have only expected that to run once
09:51jannegit shouldn't, the udev rule is only executed on probe/load
09:52stintelnow my original problem was: I was building chromium (gentoo), and it claimed the charger wasn't powerful enough, which is bs, I've also tried all 3 which worked fine before
09:53mpsI still use my charge-ctl daemon, it is more controlable
09:53stinteland the battery kept discharging, estimate was ~2h remaning which isn't even enough to compile chromium (takes 4+h) so if that was right, I would have never been able to compile chromium before
09:54jannegstintel: that's not true either since at 80% the charger will kick in
09:54stinteljanneg: it was already below
09:54stintellet me try again
09:55stintelalthough I don't have time to let it finish anymore, need to leave for the airport in less than the time it takes to compile chromium :P
09:55jannegbut yes, setting charge_control_end_threshold to 100 doesn't seem to have the desired effect
09:56jannegor maybe it does now
09:56stintelI guess it's just a bit finicky
09:56jannegit was initially at 79% but claimed charging
09:57jannegbut now it quickly jumped to 80% and then 81%
09:57stintelalso I read in the code something that charge_control_start_threshold is writeable to not confuse userspace but it's either 100 if charge_control_end_threshold is 100, otherwise it's always 75
09:58stintelso maybe I was still > 75 and didn't notice the echo 100 > charge_control_end_threshold not having worked, and somehow the plasma widget decided this meant "charger not powerful enough"
10:01matteo has joined #asahi-alt
10:09matteo has quit [Ping timeout: 480 seconds]
10:11matteo has joined #asahi-alt
10:58matteo has quit [Remote host closed the connection]
10:59matteo has joined #asahi-alt
11:04matteo_ has joined #asahi-alt
11:05matteo has quit [Read error: Connection reset by peer]
11:33aspargas2 has quit [Ping timeout: 480 seconds]
11:40aspargas2 has joined #asahi-alt
12:05zumi_ has joined #asahi-alt
12:06zumi has quit [Remote host closed the connection]
12:10zumi_ is now known as zumi
12:45matteo_ has quit [Remote host closed the connection]
12:45matteo has joined #asahi-alt
12:45matteo has quit [Read error: Connection reset by peer]
13:01matteo has joined #asahi-alt
13:01vLily9 has joined #asahi-alt
13:01vLily9 has quit [Remote host closed the connection]
13:11matteo has quit [Remote host closed the connection]
13:11matteo has joined #asahi-alt
13:18pitust has joined #asahi-alt
13:35matteo has quit [Remote host closed the connection]
13:38matteo has joined #asahi-alt
14:31possiblemeatball has joined #asahi-alt
14:33SalimTer- has quit [Ping timeout: 480 seconds]
14:33matteo has quit [Remote host closed the connection]
14:33vLily9 has joined #asahi-alt
14:33vLily9 has quit [Remote host closed the connection]
14:33matteo has joined #asahi-alt
14:35matteo_ has joined #asahi-alt
14:36jeisom has joined #asahi-alt
14:43matteo has quit [Ping timeout: 480 seconds]
14:43SalimTerryLi has joined #asahi-alt
14:43liv has quit [Quit: leaving]
14:45tpw_rulesleio: yes, all that stuff is running. the rules and service files are installed afaik. the problem seems to be that speakersafetyd starts too soon, which udev would make worse? also why is it started by the rules and wanted by multi-user.target in the service file?
14:45liv has joined #asahi-alt
14:45livhello again
14:45livneeded to reboot the vps
14:45j`eyI think the wanted by can be removed
14:45leiowanted by multi-user.target doesn't do anything other than ordering when enabled imo
14:46tpw_rules"if you omit the WantedBy=multi-user.target line and no other enabled service includes a Requires=your.service or Wants=your.service in its service definition, your service will not be started automatically. "
14:46tpw_rulesquoth some random stackoverflow post, which was my understanding too
14:47j`eyother people dont seem to have an issue with speakersafetyd starting early though
14:47tpw_rulesalso, if i make speakersafetyd wait 30 seconds to start, then wait 31 seconds to log in, it's still broken. so it's specifically an interaction with plasma and whatever it starts, not something else afaict
14:48tpw_rulesalso also nixos runs a pulseaudio daemon per user
14:49possiblemeatball has quit [Quit: Quit]
14:49vLily9 has joined #asahi-alt
14:49vLily9 has quit [Remote host closed the connection]
14:49tpw_rules(not all nixos users have this issue either...)
14:50j`eyliv: did you try out configs from viola
14:50yukatpw_rules: you have pipewire and wireplumber though right?
14:52possiblemeatball has joined #asahi-alt
14:53zzywysm_tpw_rules: i'm into day 3 writing a shell script that starts with the Fedora Asahi kernel config and builds you a NixOS-Apple-Silicon kernel config, and every change i make includes a rationale
14:54zzywysm_and it all uses the Kconfig system properly, with no hand-edits to the config file
14:56tpw_ruleszzywysm_: i'm interested to see, but i did already figure out an interim solution on the wip branch. i'd like the next step to be to just use nixos's built in system but that does have some downsides
15:08zzywysm_tpw_rules: i agree it would be nice to use the built-in system, but it's kind of a wreck
15:08zzywysm_i'm considering proposing a talk for the upcoming Nix conference in San Diego about it
15:09zzywysm_one of the oldest open issues in nixpkgs is about modernizing how the kernel stuff works
15:09zzywysm_oh wait, is it San Diego or Los Angeles?
15:13kidplayer666 has quit [Quit: Connection closed for inactivity]
16:00jacksonchen666 is now known as Guest11451
16:00jacksonchen666 has joined #asahi-alt
16:05Guest11451 has quit [Remote host closed the connection]
16:07kidplayer666 has joined #asahi-alt
16:08jacksonchen666 is now known as Guest11453
16:08jacksonchen666 has joined #asahi-alt
16:10jacksonchen666 is now known as Guest11454
16:10jacksonchen666 has joined #asahi-alt
16:10Guest11453 has quit [Remote host closed the connection]
16:16Guest11454 has quit [Ping timeout: 480 seconds]
16:19eiln has quit [Quit: WeeChat 4.1.2]
16:19jacksonchen666 has quit [Quit: WeeChat 4.1.2]
16:23john-cabaj has joined #asahi-alt
16:25matteo_ has quit [Remote host closed the connection]
16:25matteo has joined #asahi-alt
16:25matteo has quit [Remote host closed the connection]
16:35possiblemeatball has quit [Quit: Quit]
16:35john-cabaj has quit [Ping timeout: 480 seconds]
16:42matteo has joined #asahi-alt
16:45jacksonchen666 has joined #asahi-alt
17:06matteo has quit [Remote host closed the connection]
17:06matteo has joined #asahi-alt
17:06matteo has quit [Remote host closed the connection]
17:22matteo has joined #asahi-alt
17:30matteo has quit [Ping timeout: 480 seconds]
17:39matteo has joined #asahi-alt
17:47matteo has quit [Ping timeout: 480 seconds]
17:56marcantpw_rules: > if it starts during boot, then plasma shows me no audio devices until i stop it.
17:56marcanyour pipewire is too old or your udev rules are not working properly.
17:57matteo has joined #asahi-alt
17:57marcanPipeWire has a check that refuses to open any cards with busy subdevices. speakersafetyd keeps a subdevice busy.
17:57marcanI fixed this with logic in PipeWire to check for a udev env var and ignore that subdevice
17:57marcanthat is set by this udev rule in speakersafetyd: KERNEL=="pcmC*D2c", ATTRS{id}=="AppleJ*", ENV{ACP_IGNORE}="1"
17:57marcanthis mechanism is not working for you for some reason
18:05matteo has quit [Ping timeout: 480 seconds]
18:05zumi_ has joined #asahi-alt
18:05zumi has quit [Remote host closed the connection]
18:10zumi_ is now known as zumi
18:15matteo has joined #asahi-alt
18:20vLily9 has joined #asahi-alt
18:20vLily9 has quit [Remote host closed the connection]
18:27matteo has quit [Ping timeout: 480 seconds]
18:30jeisom has quit [Ping timeout: 480 seconds]
18:36matteo has joined #asahi-alt
18:45matteo has quit [Ping timeout: 480 seconds]
18:45possiblemeatball has joined #asahi-alt
18:47tpw_rulesmarcan: i have pipewire 1.0.0 i believe so i'll double check the second. thank you for the info
18:53matteo has joined #asahi-alt
19:02vLily9 has joined #asahi-alt
19:02vLily9 has quit [Remote host closed the connection]
19:17matteo has quit [Ping timeout: 480 seconds]
19:27matteo has joined #asahi-alt
19:33kidplayer666 has quit [Quit: Connection closed for inactivity]
19:37matteo has quit [Remote host closed the connection]
19:37matteo has joined #asahi-alt
19:39nela has quit [Ping timeout: 480 seconds]
19:45matteo has quit [Remote host closed the connection]
19:46matteo has joined #asahi-alt
19:59matteo has quit [Remote host closed the connection]
20:00matteo has joined #asahi-alt
20:02nela has joined #asahi-alt
20:05matteo has quit [Remote host closed the connection]
20:06matteo has joined #asahi-alt
20:06matteo has quit [Remote host closed the connection]
20:06matteo has joined #asahi-alt
20:14matteo has quit [Ping timeout: 480 seconds]
20:22ciara has quit [Remote host closed the connection]
20:24matteo has joined #asahi-alt
20:27ciara has joined #asahi-alt
20:36jeisom has joined #asahi-alt
20:47vLily9 has joined #asahi-alt
20:47vLily9 has quit [Remote host closed the connection]
21:06vLily9 has joined #asahi-alt
21:06vLily9 has quit [Remote host closed the connection]
21:19kidplayer666 has joined #asahi-alt
21:32matteo has quit [Ping timeout: 480 seconds]
21:52vLily9 has joined #asahi-alt
21:52vLily9 has quit [Remote host closed the connection]
21:52vLily9 has joined #asahi-alt
21:52vLily9 has quit [Remote host closed the connection]
21:58matteo has joined #asahi-alt
22:08chadmedchaos_princess: you're using gentoo right
22:09chadmedugh yep just realised i havent updated sys-apps/asahi-scripts yet :p
22:10chadmedso your asahi-diagnose is missing all the audio chekcs
22:10chaos_princessi can patch the ebuild and re-do it with audio checks
22:12chadmedyou can just resync the overlay
22:12chadmedjust pushed the new version
22:12chadmeddoesnt really matter though its not like youre some untrustworthy rando
22:13chadmedwhen you have a moment to troubleshoot, can you go to /usr/share/wireplumber/policy.lua.d/85-asahi-policy.lua and set hide_parent = false
22:13chadmedand then restart pipewire
22:13chaos_princessthats the output, which is unfortunately rubbish, i haven't tried enabling speakers before they were done on this machine
22:13chadmedand tell me what the volume for the hardware sink is set to
22:15chadmedare you on arm64 or ~arm64
22:15chadmedokay cool
22:15chadmedtry the first thing i said then when you have some free time
22:16chadmedon j314 at max volume i need my pair of proper 3M earmuffs
22:16chadmedso if its quiet for you something is definitely wrong
22:17chaos_princessthe raw was set to 40%
22:17chadmedah there ya go :p
22:17chadmedwe have a rule that's supposed to set that to 100%
22:17chadmedwhat is the raw called for you
22:17matteo has quit [Remote host closed the connection]
22:18matteo has joined #asahi-alt
22:18chadmedi have a feeling this is some profile related bs given your asahi-diagnose
22:18matteo has quit []
22:18chaos_princessok, setting both to 100%, the speakers is just as ear-hurtingly loud as macos, thx
22:19chadmedfor my own sanity, can you try deleting ~/.local/state/wireplumber
22:19chadmedthen restarting pipewire
22:19chadmedand then see what the raw sink gets set to
22:19chadmedit should also automatically set itself to the HiFi profile
22:20chaos_princesswhat specific name are you looking for, the one in the kde panel is just called "Speakers (Built-in Audio Speakers)"
22:20chadmedyeah cool thats what i wanted
22:21chaos_princessthe profile is "Default", the only other choice is "Pro Audio"
22:21chadmedyeah thats fine, Default is the HiFi profile
22:22chadmedcan you try the ~/.local/state/wireplumber/ thing
22:22chaos_princessdeleting it? that is what happened after i deleted it, it also reset volume on raw device from 100% to 40
22:23chadmedhmph okay so that rule is not working for you for some reason
22:23chadmedyou have asahi-audio-1.6 right
22:23chaos_princessmedia-libs/asahi-audio-1.6
22:28chadmedin /usr/share/wireplumber/scripts/policy-asahi.lua, can you set line 20 to be `if profile == nil or profile.name ~= "HiFi" or profile.name ~= "Default" then`
22:28matteo has joined #asahi-alt
22:33chaos_princessseems like something went horribly wrong, i now have no audio devices and i do not see wireplumber in htop. Logging out and back in did not help
22:33chaos_princessheadphones do not work either
22:34chadmedokay revert that change
22:36matteo has quit [Ping timeout: 480 seconds]
22:39vLily9 has joined #asahi-alt
22:39vLily9 has quit [Remote host closed the connection]
22:42kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
22:42kdb424 has joined #asahi-alt
22:46vLily9 has joined #asahi-alt
22:46vLily9 has quit [Remote host closed the connection]
22:57chadmedthis is a head scratcher
22:57chadmedthis works fine on all my machines, one of which is a j314
22:58kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
22:59chaos_princessdo you need any additional info, pipewire state dump or something?
22:59kdb424 has joined #asahi-alt
23:01chadmedthe output of `pw-cli i all` might be useful
23:01chadmed(with hide_parent = false)
23:10possiblemeatball has quit [Quit: Quit]
23:18kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
23:20kdb424 has joined #asahi-alt
…