#
#asahi-dev · 2022-12-01 10:56
chadmedand if its an EOL feature on the machines then theres even less incentive for people to support it
#asahi-dev · 2022-12-01 10:56
chadmedimho i think its a cool exercise in RE and all that, but theres very little chance anyone is going to put in the dev time to support it in desktop apps. even apple seem to have abandoned it
#asahi-dev · 2022-12-01 10:55
dsharshakovHowever, someone might have different ideas and then compositor must use the touchbar, but just know about it and use wisely
#asahi-dev · 2022-12-01 10:54
dsharshakovHowever, should touchbar support be in or stay away from compositors? I'm mostly for the latter approach for better cross-desktop support and easier app integration
#asahi-dev · 2022-12-01 10:53
dsharshakovthey mustn't use non_desktop screens unless asked by a VR client, and the NON_VR flag will tell VR clients to avoid the bar as well
#asahi-dev · 2022-12-01 10:53
svenChaosPrincess: yeah, that sounds good
#asahi-dev · 2022-12-01 10:52
ChaosPrincessyea, i want to just hook it up in a sane way, just maybe hide it from the compositor
#asahi-dev · 2022-12-01 10:52
dsharshakovMaybe a new flag? Non_desktop | non_vr = don't touch unless asked to?
#asahi-dev · 2022-12-01 10:52
svenlet's please not bypass some kernel framework just because compositors are possibly broken
#asahi-dev · 2022-12-01 10:51
dsharshakovI wouldn't trust in compositors that much
#asahi-dev · 2022-12-01 10:51
_jannau_ah, non_desktop/HMD isn't that useful then. So the hope is then that compositors prefer screens with height > 128 pixels or what ever resolution the touchbar has
#asahi-dev · 2022-12-01 10:50
dsharshakovand t2linux likely have less work to do and somebody might devote their time to writing a Linux driver + discussing the concept
#asahi-dev · 2022-12-01 10:49
ChaosPrincesspmuch that
#asahi-dev · 2022-12-01 10:49
sventhe hw interface is likely the same, it's just that apple wrote their own driver running on the T2 and somehow proxies that over a custom usb protocol
#asahi-dev · 2022-12-01 10:49
dsharshakovYes, but existence of one means people discovered how to talk to bridgeOS to customize the touch bar. Maybe lack of Linux driver is just bc nobody cares
#asahi-dev · 2022-12-01 10:49
ChaosPrincesschadmed: yea, but they are behind a usb attached controller that actually draws the screen, while m1 seems to have it in software
#asahi-dev · 2022-12-01 10:48
dsharshakovI wanted to ask them whether someone can port that bootcamp driver to Linux to later try with my `auxdisplayd` approach
#asahi-dev · 2022-12-01 10:48
ChaosPrincessis there even a t2 touchbar driver that exposes full features and not just f-keys for linux? i only know of a winders one
#asahi-dev · 2022-12-01 10:48
chadmedfwiw all those elgato stream deck things share some python lib for actually doing things with them
#asahi-dev · 2022-12-01 10:47
dsharshakovProbably a FB driver should be sufficient to render the touchbar at its 60 Hz with plain pixel copies. Maybe it'd be great to co-ordinate with T2 devs to propose a common device api to expose touchbar display with
#asahi-dev · 2022-12-01 10:45
chadmedthats what i was thinking of yeah heh
#asahi-dev · 2022-12-01 10:45
ChaosPrincessfighter pilot helmet? :P
#asahi-dev · 2022-12-01 10:44
chadmedyeah vr, but probably also used for significantly more lethal devices id say
#asahi-dev · 2022-12-01 10:44
dsharshakov"ok like vr stuff" <-- yes, for that
#asahi-dev · 2022-12-01 10:44
dsharshakova drm driver would be difficult to prevent from being grabbed by the compositor (likely we'll have to either place our quasi-window there or ask for a DRM lease)
#asahi-dev · 2022-12-01 10:44
j`eychadmed: ok like vr stuff
#asahi-dev · 2022-12-01 10:44
chadmedhead-mounted display?
#asahi-dev · 2022-12-01 10:43
j`ey"@non_desktop: Non desktop display (HMD)." (in include/drm/drm_connector.h, not sure what HDM is)
#asahi-dev · 2022-12-01 10:43
ChaosPrincessyea, i looked at that, but i think it does swaps, no?
#asahi-dev · 2022-12-01 10:43
dsharshakovThere's been a MIT-licensed BootCamp driver for TouchBar by someone, that just pushes pixels over usb
#asahi-dev · 2022-12-01 10:42
dsharshakovLikely we can avoid drm, since that's unlikely to fit well. T2 touchbar is a framebuffer, not a proper display controller with swaps etc
#asahi-dev · 2022-12-01 10:41
dsharshakovIt'd have a D-Bus (or socket) API for apps to register widgets with, as well as own widgets such as Fx (+esc) buttons or sth like that
#asahi-dev · 2022-12-01 10:41
ChaosPrincess_jannau_: how does that work?
#asahi-dev · 2022-12-01 10:41
_jannau_ChaosPrincess: iirc drm has a flag for non-desktop display devices
#asahi-dev · 2022-12-01 10:40
Dcoweven don't have any touchbar devices anymore
#asahi-dev · 2022-12-01 10:40
dsharshakovI think of writing a Rust-based touchbar service `auxdisplayd` for such cases as touchbar, ASUS ScreenPad or custom touchscreens makers want to attach
#asahi-dev · 2022-12-01 10:39
Dcowjust imagine KDE panel there ;)
#asahi-dev · 2022-12-01 10:39
dsharshakovChaosPrincess: hello! I wanted to reach out to either you or T2 people about touchbar userspace
#asahi-dev · 2022-12-01 10:26
povikno point in not using the right interface that's already there because you want to make it less compatible and enforce use-case
#asahi-dev · 2022-12-01 10:26
poviksounds to me like it should be a regular touchscreen kernel-wise
#asahi-dev · 2022-12-01 10:04
ChaosPrincessyea, something like that
#asahi-dev · 2022-12-01 10:04
Dcowit's like embedded stream deck
#asahi-dev · 2022-12-01 09:36
chadmedif its just a dumb framebuffer with a digitiser on top of it that we cant represent as a "normal" touchscreen
#asahi-dev · 2022-12-01 09:34
chadmedsounds like something that would benefit from a bespoke userspace lib that does any special stuff with ioctls
#asahi-dev · 2022-12-01 09:33
ChaosPrincessnot on m1 touchbar, t2 had it, but you could also send framebuffers there
#asahi-dev · 2022-12-01 09:33
ChaosPrincessand while i haven't looked too close at the screen part, it looks like there is just a framebuffer there
#asahi-dev · 2022-12-01 09:33
chadmedis there nothing like that in front of the touchbar?
#asahi-dev · 2022-12-01 09:32
ChaosPrincessthose screens tend to be connected to a microcontroller that actually drivers the screen, and communications are done over usb.
#asahi-dev · 2022-12-01 09:31
chadmedare there any drivers for those cringe little screens they put on PC AIOs et al these days?
#asahi-dev · 2022-12-01 09:31
chadmedah of course :P

plus ›