LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2024, 12:42 PM   #1
theta0
LQ Newbie
 
Registered: Jun 2023
Posts: 3

Rep: Reputation: 0
FIM hangs when outputting to framebuffer from tty (Debian 12)


I installed FIM to look at images from the TTY on a Debian 12 laptop. This laptop has XFCE running in one virtual terminal, with a bare TTY in another virtual terminal. When I run FIM in the TTY, it gives me no error messages, but hangs indefinitely. When I press CTRL-C to stop it, my image briefly flashes on the screen (for only one frame, I think), and then it goes back to the terminal.

Running FIM in a terminal emulator in XFCE, obviously I can't output to the framebuffer, but the default display method of sdl works fine, as does the aa method. The "dumb" method hangs, never displaying anything.

Here are links to stacktraces:
https://0x0.st/XHz5.txt (FIM in XFCE in sdl mode, works)
https://0x0.st/XHzn.txt (FIM in XFCE in dumb mode, broken)
https://0x0.st/XHzd.txt (FIM on the TTY in fb mode, broken)

Note that the "--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---" line in the TTY/fb stacktrace is when I pressed CTRL-C.

Does anyone know what's happening here or how to fix it?

Thank you!
 
Old 04-24-2024, 01:47 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 783

Rep: Reputation: 250Reputation: 250Reputation: 250
Usually my standard response to this is to build it yourself and see if that works. I had 0.6.0-rc0, just updated to 0.7.0 and they both work w/framebuffer. Even if the desktop is running, you should be able to switch to a (plain) TTY and view images.
 
Old 04-24-2024, 07:44 PM   #3
theta0
LQ Newbie
 
Registered: Jun 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Just tried (with 0.7.0) and I'm running into basically the same problem again. (I also gave myself rw permissions to /dev/fb0 through a "framebuffer" group, which they suggest.) This time, the image doesn't display for a frame after an interrupt -- just a flash of black. However, if I switch to another virtual terminal, then switch back, it works properly: i can see the image and interact with FIM. Also, if I run it via strace *with output to stderr*, it spins up a simple user interface, and occasionally, with small enough files, it will display them properly. This makes me think this is a timing problem, where running strace to terminal stderr slows it down enough that something happens in a different order.

The relevant syscall, which isn't happening until I switch back and forth through virtual terminals, is ioctl(3, FBIOPAN_DISPLAY, 0x561849335b20). It runs and returns 0 after switching; doesn't run at all until you switch VTs. (3 is a fd for /dev/fb0.)

Any idea why this happens? Race condition? Am I missing some key framebuffer library dependency or something?
 
  


Reply

Tags
fim, framebuffer, graphics



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] eliminate blinking cursor from fim (fbi (linux framebuffer imageviewer) improved) Turbocapitalist Linux - Desktop 2 12-16-2018 02:30 AM
LXer: How to Setup File Integrity Monitoring (FIM) using osquery on Linux LXer Syndicated Linux News 0 09-08-2018 07:21 PM
framebuffer confusion with Hauppauge PVR 350 framebuffer /dev/fb0 tofino_surfer Linux - General 4 09-18-2008 11:36 PM
VESA framebuffer vs Intel framebuffer in Slackware 10.0 with default kernel brancalessio Slackware 3 01-20-2005 03:21 PM
Problems with tty and framebuffer device jaakkop Linux - General 0 08-03-2004 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration