Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Fbcon apps possibly not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MarcoMarin
Apprentice
Apprentice


Joined: 12 Mar 2014
Posts: 151

PostPosted: Sun Apr 29, 2018 3:29 pm    Post subject: [Solved] Fbcon apps possibly not working Reply with quote

Hi,

mpv new method of using xorg's libs to access the framebuffer isn't working for me. (namely, libdrm and pixman, instead of Sdl1.2)
the output, besides the blank screen, is
Code:
[vo/drm] Cannot flip page for connector
..when I try "-vo=drm".

Everything else works (sound, pausing, quitting) and even the video works if I choose "-vo=caca" (for Ascii). Sometimes MPV manages to place the 1st frame and its progress bar on the lower half of the screen.

Tried some options like "geometry" and "dsize", to make sure it complied to the "vga=" kernel command line option, but didn't help.

Any ideas, please?
===

PS: Why I say "half Solved"? Because Links was having problems with fbcon as well, but it works now (show webpages images). Not sure what I did, 'cause it was still not finding "fb" (driver not found, then lists which drivers it accepts) after all solutions I tried. (cli option for different drivers like driver=fb0, amdgpu, fbcon..), adding non-root users to the video group (tho root couldn't run with the -g option either).

But at least this proves fbcon works, in case the Linux Logo was not enough ; -) I can also rotate it, as per the linux kernel Documentation (fbcon.txt)


Last edited by MarcoMarin on Sat Jun 02, 2018 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
MarcoMarin
Apprentice
Apprentice


Joined: 12 Mar 2014
Posts: 151

PostPosted: Sat Jun 02, 2018 4:24 pm    Post subject: Reply with quote

It works!

It 'displays' erratic behavior however. Sometimes it doesn't work, which suggests connector initialization order (see [1]) is confusing mpv. Turning on CONFIG_FB_MODE_HELPERS on the kernel had no effect on this symptom, which also suggests they're not using them.


FYI:

Curiously, after massive experimentation with Kernel AND compilation flags, to no avail, it seems ATI Radeon is still a better fit for this hardware (Southern Islands) than the current implementation of amdgpu. The reason being every time the above error manifested, xorg-server would ALSO slow to a crawl (unusable). Changing to Radeon solved this.

Another possible upside from this exercise is about libdrm vs mesa USE flags. While trying to toggle between amdgpu/radeonsi and radeon, portage seem to block reinstalls unless I kept the flag. Perhaps they should be harmonized to the same name? Also, emerge displays only the last section of the actual flag which is prepended by "video_cards_", probably having to do with the variable from make.conf, though potentially confusing.


[1] https://www.kernel.org/doc/html/v4.10/gpu/drm-kms-helpers.html In particular the function void drm_helper_move_panel_connectors_to_head(struct drm_device * dev), near the end of the page, would be of interest.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum