You are not logged in.
I used to use Arch without special .xinitrc configuration. Moreover I didn't have xorg-xinit package installed.
The other day I was looking for terminal image viewer and decide to try fbv.
If I try to use it with fbv test.png I get error
open /dev/fb0: Permission deniedIf I'm right its somehow related to xorg and possibly I missed xinit configuration.
I'm using KDE plasma. Currently my .xinitrc looking as http://ix.io/jmE
Will appreciate advises
Last edited by webcapcha (2022-12-31 11:27:20)
Ukrainian
Offline
I didn't have xorg-xinit package installed
So you didn't use startx/xinit itfp and your xinitrc is irrelevant.
fbv is a *framebuffer* viewer, it'll work on a *framebuffer* console, not some PTS in whatever display server.
ctrl+alt+f3, login, try again.
Offline
So you didn't use startx/xinit itfp and your xinitrc is irrelevant.
I wasn't clear enough. I meant firstly I didn't have xorg-xinit and .xinitrc. Then I installed xorg-xinit when I got error with fbv.
fbv is a *framebuffer* viewer, it'll work on a *framebuffer* console, not some PTS in whatever display server.
So it intended it should work only inside TTY?
ctrl+alt+f3, login, try again.
Exactly the same error as in the original message.
P.S. I have to add to my original post. When I get error my cursor in alacritty terminal even vanished. Only reset command help. In the TTY the same behavior
Last edited by webcapcha (2022-12-31 10:50:56)
Ukrainian
Offline
loginctl session-status
stat /dev/fb0
getfacl /dev/fb0It's not gonna work in alacritty.
Offline
but in tty also doesn't work
> loginctl session-status
2 - lex (1000)
Since: Fri 2022-12-30 23:39:23 EET; 13h ago
Leader: 581 (sddm-helper)
Seat: seat0; vc1
Display: :0
Service: sddm; type x11; class user
Desktop: KDE
State: active
Unit: session-2.scope
├─581 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth9974f20a-8cab-4301-8594-f6e12bbce5e3 --id 1 --start /usr/bin/startplasma-x11 --user lex
└─591 /usr/bin/startplasma-x11
Dec 30 23:39:23 home-laptop systemd[1]: Started Session 2 of User lex.
Dec 30 23:39:23 home-laptop sddm-helper[591]: Adding cookie to "/home/lex/.Xauthority"
~
> stat /dev/fb0
File: /dev/fb0
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 0,5 Inode: 332 Links: 1 Device type: 29,0
Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 985/ video)
Access: 2022-12-21 12:31:32.786666680 +0200
Modify: 2022-12-21 12:31:32.786666680 +0200
Change: 2022-12-21 12:31:32.786666680 +0200
Birth: 2017-01-10 02:00:12.158477095 +0200
~
> getfacl /dev/fb0
getfacl: Removing leading '/' from absolute path names
# file: dev/fb0
# owner: root
# group: video
user::rw-
group::rw-
other::---Last edited by webcapcha (2022-12-31 11:11:56)
Ukrainian
Offline
You're using sddm - your xinitrc is irrelevant. It does nothing.
What is the getfacl output in a tty login?
In doubt, add yourself to the vifdeo hroup.
Offline
What is the getfacl output in a tty login?
the same as inside KDE
getfacl: Removing leading '/' from absolute path names
# file: dev/fb0
# owner: root
# group: video
user::rw-
group::rw-
other::---In doubt, add yourself to the vifdeo hroup.
I addded me to video group after that in TTY fbv works. YEAH.
Within desktop environment the same permission error. But as far as I understand this is correct behavior. Am I right?
Ukrainian
Offline
Eperm is perhaps not the correct response, but a framebuffer tool will not work in a pts, so the failure is expected, yes.
Offline
thanks seth
marked as solved
Ukrainian
Offline