any way to turn off authentication on pinephone?
#1
I'm using it purely as a phone and reader, and there's nothing on the pinephone of any interest to anyone. The authentication step is a bother but would be okay if it only happened on reboot. But it's every single time after the screen blanks, which is a *giant* bother. (More so for me than some people because I have very dry skin, and everything on a touchscreen takes multiple tries for me.)

Oh, I do have the screen set to never blank while I'm using it, but I doubt that's a good idea when it's knocking around in my pocket.

Is there any way to bypass authentication entirely? I'm happy to edit files in /etc or wherever, but will need step-by-step instructions. Bad things happen when I try to improvise as root Dodgy .
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OS: Mobian Bookworm, Phosh. Pinephone Braveheart from 2020-02-11
  Reply
#2
Not yet AFAIK. There's an outstanding phosh bug/feature request asking for an option to disable password authentication on the lock screen, but nobody has implemented it yet. I think that would still need a touchscreen action like a swipe, but a lot less involved than a full unlock.
  Reply
#3
as a partial solution, why change password to one digit, like "9". obvious disadvantage, do not use ssh or change ssh to allow different user.

get the user name.
Code:
$ whoami


get the root console, system does not allow ordinary users to change bad and easy passwords.
Code:
$ sudo su -l

change user password, (do not change root user's password).
Code:
# passwd >username<
# passwd manjaro

in one command
Code:
$ sudo passwd >username<
  Reply
#4
I stand on :
loginctl show-seat $(loginctl list-seats --no-pager --no-legend) -p ActiveSession --value|xargs -iX loginctl unlock-session X
or faster :
loginctl unlock-sessions
when connected in ssh.
From what i understood, systemd-logind take the hand when the power on button is pressed, then it communicates directly with PAM. I found no way to add a second handler on the press button or redirect the existing one.
udevadm trigger -v -n -g power-switch
returns
/sys/devices/platform/gpio-keys/input/input0/event0
...
Then
udevadm info /sys/devices/platform/gpio-keys/input/input0/event0
seems to correspond to the power button (but not sure - if somebody could confirm)
So we have the command to run and (perhaps) the button, and now ?
  Reply
#5
Thanks for the ideas!

The one to change pwd to one digit could well be a workaround. I didn't realize there was enough interest for a bug/feature request to be filed. I'll have to go look that up.

I'll have to study yours, Frexit. Not sure I understand it yet Big Grin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OS: Mobian Bookworm, Phosh. Pinephone Braveheart from 2020-02-11
  Reply
#6
I followed the
Code:
cat /sys/devices/platform/gpio-keys/input/input0/event0/uevent

then
Code:
fuser /dev/input/event0

and it is seems finally that systemd doesn't handle the power button at all because of the file :

Code:
/etc/systemd/logind.conf.d/ignore-power-key.conf
[Login]
HandlePowerKey=ignore

According to "udevadm monitor", the power button is not handled by udev too.
The previous fuser shows 3 processes : init, systemd-logind and phoc/phosh/gnome-session.
So it seems that the power button is definitely handled by the last one :
Code:
/usr/bin/phoc -C /usr/share/phosh/phoc.ini -E bash -lc 'gnome-session --disable-acceleration-check --session=phosh --builtin'
So seems like we will have to wait that phosh team implements the option...
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone shuts itself down d-.-b 3 161 01-15-2022, 12:57 PM
Last Post: treebeard
  This Qutebrowser config file made browsing on the PinePhone great again ryo 0 127 01-05-2022, 05:49 PM
Last Post: ryo
  Axolotl on PinePhone / Mobian arno_nuehm 152 46,719 12-17-2021, 02:36 PM
Last Post: beaustovall
  Tutanota on Pinephone publiclewdness 5 729 11-09-2021, 10:47 AM
Last Post: TRS-80
  cryptocurrency on mobian/pinephone biketool 13 1,556 11-05-2021, 08:05 AM
Last Post: ryo
  Godot export for PInePhone ragreenburg 0 320 10-08-2021, 01:40 PM
Last Post: ragreenburg
  Mobian pinephone -- "Stalled" (best way to describe it) fred_mobian 3 760 09-24-2021, 08:19 PM
Last Post: bcnaz
  Pure Maps GPS on Pinephone Mobian godzillest 3 1,221 08-03-2021, 03:07 AM
Last Post: mouffa
  Axolotl on Pinephone CarmeloLabadie 1 836 07-26-2021, 12:56 AM
Last Post: kqlnut
  Armbian on the PinePhone Meow 0 511 07-21-2021, 10:42 PM
Last Post: Meow

Forum Jump:


Users browsing this thread: 1 Guest(s)