#
…

2022-02-12

00:36sirn has quit [Server closed connection]
00:37sirn has joined #asahi-re
00:45yuyichao has quit [Ping timeout: 480 seconds]
00:53user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:59user982492 has joined #asahi-re
00:59user982492 has quit []
01:15jeh[m] has quit [Server closed connection]
01:15jeh[m] has joined #asahi-re
01:48yuyichao has joined #asahi-re
01:52user982492 has joined #asahi-re
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-re
03:35phiologe has joined #asahi-re
03:38PhilippvK has quit [Ping timeout: 480 seconds]
04:04mini has quit [Server closed connection]
04:04mini has joined #asahi-re
04:31josipknezovic[m] has quit [Server closed connection]
04:31josipknezovic[m] has joined #asahi-re
04:46NotHere[m] has quit [Server closed connection]
04:46NotHere[m] has joined #asahi-re
04:50Rhys[m]12 has quit [Server closed connection]
04:50Rhys[m]12 has joined #asahi-re
05:16chengsun_ has quit [Server closed connection]
05:16chengsun has joined #asahi-re
05:23kit_ty_kate has quit [Server closed connection]
05:23kit_ty_kate has joined #asahi-re
05:36akemin_dayo has quit [Server closed connection]
05:36akemin_dayo has joined #asahi-re
05:42M0x8FF[m] has quit [Server closed connection]
05:42M0x8FF[m] has joined #asahi-re
05:57DarkShadow44 has quit [Server closed connection]
05:57DarkShadow44 has joined #asahi-re
06:08NightsOnly[m] has quit [Server closed connection]
06:08NightsOnly[m] has joined #asahi-re
06:56vup has quit [Server closed connection]
07:08user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:27bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:16the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:06perigoso[m] has quit [Server closed connection]
10:06perigoso[m] has joined #asahi-re
10:08nsklaus_ has quit [Quit: Textual IRC Client: www.textualapp.com]
11:01Liam[m] has quit [Server closed connection]
11:01Liam[m] has joined #asahi-re
11:02DanStrong[m] has quit [Server closed connection]
11:02DanStrong[m] has joined #asahi-re
11:02pulpy_orange2[m] has quit [Server closed connection]
11:02pulpy_orange2[m] has joined #asahi-re
11:03retonlage[m] has quit [Server closed connection]
11:03retonlage[m] has joined #asahi-re
11:04YichaoYu[m] has quit [Server closed connection]
11:04YichaoYu[m] has joined #asahi-re
11:33marcanso I'm looking at SMC firmware and now the 290915 mfg date for my battery makes "sense"
11:33marcanit's a bug, lol
11:33marcanthey use a standard SBS command to get the date, and the format is standard; year is in years since 1980
11:34marcanbut for some bizarre reason, instead of adding 1980, they subtract 68 instead, then truncate to 8 bits and use that as the number
11:35marcan68 is the additive inverse of 1980 in *11* math, not 8. maybe they have a char cast/variable somewhere where they meant a short, and 3 bits fell off.
11:35marcan* *11-bit*
11:35marcan(why they did it this way, not the faintest clue)
11:35marcan>>> ((41-0x44) & 0x7ff)
11:35marcan>>> ((41-0x44) & 0xff)
11:35marcanso that is why I get 29, lol
11:38marcanactually the 68 thing is probably the compiler's doing
11:38marcanas simply put,
11:38marcan>>> 2021 & 0xff
11:38marcanso yeah, probably an incorrect variable type. ha.
11:52svenfile a radar? :>
12:23marcaninb4 it's part of the interface now and they aren't changing it :>
12:26marcananother fun thing is that you can force lower current limits for certain USB ports, but the SMC firmware doesn't take that into account when picking a port
12:26marcanso you can end up in a situation where plugging in an additional charger makes it *stop* charging, because the charger is nominally faster than an existing one, but the current limit is set to 0 :D
12:53marcananyway, I think I saved most of the battery-charging yaks, the driver now supports disabling charging and such so userspace can implement something like the macOS optimizations if it wants
12:53marcanjust need to add an AC adapter device since some things expect there to be one
12:53marcanbut that one is simpler
13:47vup has joined #asahi-re
14:21landscape15[m]marcan: Does this mean you can have a “save battery health” feature built in Linux? If I remember, in macOS if you keep your Mac connected to power, it switch to AC-power.
14:36alyssamarcan: when will all this SMC/SPMI/RTC goodness hit asahilinux/linux:asahi?
17:00bisko has joined #asahi-re
18:00user982492 has joined #asahi-re
18:17bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:28user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:29user982492 has joined #asahi-re
18:30user982492 has quit []
18:30user982492 has joined #asahi-re
18:33user982492 has quit []
18:35user982492 has joined #asahi-re
18:35user982492 has quit []
18:49eragon has joined #asahi-re
20:03user982492 has joined #asahi-re
21:10bpye4 has joined #asahi-re
21:16bpye has quit [Ping timeout: 480 seconds]
21:16bpye4 is now known as bpye
21:31amw has quit [Ping timeout: 480 seconds]
21:35user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:38amw has joined #asahi-re
21:48user982492 has joined #asahi-re
23:29user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
…