You are not logged in.

#1 2022-12-31 06:13:41

webcapcha
Member
Registered: 2019-02-14
Posts: 167

[SOLVED] fbv (image viewer) possibly xinitrc bad config

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 denied

If 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

#2 2022-12-31 08:50:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

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

#3 2022-12-31 10:48:25

webcapcha
Member
Registered: 2019-02-14
Posts: 167

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

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

#4 2022-12-31 11:00:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

loginctl session-status
stat /dev/fb0
getfacl /dev/fb0

It's not gonna work in alacritty.

Offline

#5 2022-12-31 11:10:40

webcapcha
Member
Registered: 2019-02-14
Posts: 167

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

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

#6 2022-12-31 11:14:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

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

#7 2022-12-31 11:21:47

webcapcha
Member
Registered: 2019-02-14
Posts: 167

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

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

#8 2022-12-31 11:24:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

Eperm is perhaps not the correct response, but a framebuffer tool will not work in a pts, so the failure is expected, yes.

Offline

#9 2022-12-31 11:27:48

webcapcha
Member
Registered: 2019-02-14
Posts: 167

Re: [SOLVED] fbv (image viewer) possibly xinitrc bad config

thanks seth

marked as solved


Ukrainian

Offline

Board footer

Powered by FluxBB