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
  cryptocurrency on mobian/pinephone biketool 33 49,894 06-30-2025, 02:57 PM
Last Post: biketool
  Axolotl on PinePhone / Mobian arno_nuehm 223 241,441 06-25-2025, 01:19 PM
Last Post: anonymous
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 64 22,919 06-17-2025, 06:27 AM
Last Post: anonymous
  Mobian Pinephone Notification LED biketool 2 336 06-07-2025, 03:19 PM
Last Post: KC9UDX
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 7 2,767 02-20-2025, 02:47 PM
Last Post: puffchumpy
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 741 01-02-2025, 12:47 PM
Last Post: zetabeta
  unofficial kali linux for pinephone help needed pinesmell 5 6,383 01-08-2024, 02:50 PM
Last Post: ERPlegend
  PinePhone won't boot after software update jb2000 2 2,722 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
Wink Pinephone lost graphic during mobian system upgrade cmpin 4 4,061 03-01-2023, 04:45 PM
Last Post: anonymous
  Battery problem with a Pinephone keyboard and Mobian elode 2 3,598 12-22-2022, 07:10 PM
Last Post: acid andy

Forum Jump:


Users browsing this thread: 1 Guest(s)