On Thu, 16 Apr 2020 22:13:15 -0700 Ross Vandegrift <r...@kallisti.us> said:
> On Wed, Apr 15, 2020 at 08:13:01AM +0100, Carsten Haitzler wrote: > > i want to kill the text console. i just don't see the point. it's so > > limited. it's no longer even ext mode. it's graphics mode with the kernel > > emulating text on it for you. > > For day-to-day, I agree. But it's nice when I've junked up my WM or its > libraries and need an easy way to reinstall good packages... :) and that's what things like kmscon are for - a userspace gui that provides a terminal emulator. for example. instead of a kernel text mode thing it's a graphics mode application like any of the wayland compositors or running nay efl app in the vt - it takes over and renders the vt and handles input ... but in userspace. this app would also then be responsible for configuring backlight too. also keep in mind that the vt is totally cooperative already. ctrl+alt+f1/f2/f3 etc. is handled by processes. you can run chvt but the vt owner has to voluntarily give it up. if it doesn't, it's hung. if it's wayland compositors - if that compositor hangs and doesn't handle the chvt request or the actual ctrl+alt+f1/f2/f3 keys then voluntarily give it up and request a switch to that other vt (hoping the new vt owner takes over properly). it's already unreliable because of this... so something in userspace like kmscon really wouldn't be worse. especially if it were done as a static binary for emergencies. > > a graphical session with a fullscreen terminology gives the same > > effect/result just with a lot of added bonuses. hell terminology runs in a > > vt (but won't control backlight due to that needing infra that needs root > > access). > > Is there a way to force terminology to open a specific /dev/tty? I just > tried to replace agetty in getty@.service with terminology. It almost > works. But it doesn't pick up the active terminal. The process runs, > but nothing is drawn. https://raymii.org/s/tutorials/Run_software_on_tty1_console_instead_of_login_getty.html but my exec line is: ExecStart=-/usr/bin/agetty --skip-login --noissue --login-options "-f raster" %I linux then i used ~/.profile (or ~/.zprofile for me as i use zsh): if test -n "$XDG_VTNR"; then export E_WL_FORCE=drm exec enlightenment_start >& .esession-log fi to launch e - replace enlightenment_star with terminology and it'll run that instead. > (I'm not saying this a good idea, terminology is scary to run as root. > But still, would be a fun trick.) yeah. this was something i was mulling - have a lock-down mode of some sort ... but then you'd lose the ability to show images, play video, handle file paths/urls etc. and lose a lot of the settings too... but given enough disabling it would be able to run without allowing the user to get the host terminal running as root to do much bad. > > at some point the kernel probably needs to wire up backlight to kms. also > > ddc controls probably need to be wired up with that too. you know e can > > control monitor backlights just like it controls your laptop internal > > screen backlight? you can adjust brightness of each external monitor > > individually and e will also... fade these in and out to/from min to max > > etc. alongside your laptop internal backlight... :) it's lout of the box if > > you have libddcutil installed. > > I saw you mention this, but haven't had a chance to try it. Been > testing without docking. Definitely a cool feature though. > > Ross > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - ras...@rasterman.com _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel