Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] cinnamon runs in "software rendering mode"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Prof. Frink
n00b
n00b


Joined: 07 Jan 2017
Posts: 69

PostPosted: Mon Feb 19, 2018 2:18 pm    Post subject: [solved] cinnamon runs in "software rendering mode" Reply with quote

Hey,

I recently updated cinnamon to 3.4.6, because of this. But now cinnamon always starts in "software rendering mode" with high cpu usage.

This is my system:

Code:
#inxi -Fz
Resuming in non X mode: xdpyinfo not found. For package install advice run: inxi --recommends
System:    Host: matrix Kernel: 4.9.76-gentoo-r1 x86_64 bits: 64
           Desktop: Cinnamon 3.4.6  Distro: Gentoo Base System release 2.4.1
Machine:   Device: desktop Mobo: ASRock model: B75 Pro3 serial: N/A
           BIOS: American Megatrends v: P1.90 date: 12/20/2013
CPU:       Quad core Intel Core i5-3570 (-MCP-) cache: 6144 KB
           clock speeds: max: 3401 MHz 1: 3400 MHz 2: 3400 MHz 3: 3400 MHz
           4: 3400 MHz
Graphics:  Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
           Display Server: X.org 1.19.6 driver: intel
           tty size: 79x29 Advanced Data: N/A for root
Audio:     Card Intel 7 Series/C216 Family High Def. Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.9.76-gentoo-r1
Network:   Card: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 1064.2GB (80.0% used)
           ID-1: /dev/sda model: ST1000DM003 size: 1000.2GB
           ID-2: /dev/sdb model: ADATA_SP900 size: 64.0GB
Partition: ID-1: / size: 59G used: 49G (87%) fs: ext4 dev: /dev/sdb3
           ID-2: /boot size: 128M used: 87M (68%) fs: vfat dev: /dev/sdb2
           ID-3: /home size: 910G used: 738G (86%) fs: ext4 dev: /dev/sda1
           ID-4: swap-1 size: 8.20GB used: 0.00GB (0%)
           fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.5C mobo: 28.0C
           Fan Speeds (in rpm): cpu: N/A fan-1: 1020 fan-2: 628 fan-3: 0 fan-4: 1062 fan-5: 0
Info:      Processes: 202 Uptime: 56 min Memory: 2625.1/7672.6MB
           Init: SysVinit rc: OpenRC runlevel: default
           Client: Shell (bash) inxi: 2.3.55


Any ideas how to solve this? The common Linux Mint threads with this issue result in a reinstallation of the system. This of course should not be the solution.

Thank you and best regards,

Frink


Last edited by Prof. Frink on Wed Feb 21, 2018 3:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Mon Feb 19, 2018 9:44 pm    Post subject: Reply with quote

Was it working before or were you never using it?

Does your VIDEO_CARDS in your make.conf include "intel i965" ?

Post the contents of your /var/log/Xorg.0.log if this is the case as well as the output of

$ glxinfo|grep render
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Prof. Frink
n00b
n00b


Joined: 07 Jan 2017
Posts: 69

PostPosted: Tue Feb 20, 2018 7:45 am    Post subject: Reply with quote

eccerr0r wrote:
Was it working before or were you never using it?


Yes, with cinnmon-3.0.7-r2 everything was working fine.

eccerr0r wrote:

Does your VIDEO_CARDS in your make.conf include "intel i965" ?


It includes just "intel". I changed it to "intel i965" and recompiled, but with no effekt.

eccerr0r wrote:

Post the contents of your /var/log/Xorg.0.log if this is the case as well as the output of

$ glxinfo|grep render


/var/log/Xorg.0.log and

Code:
# glxinfo|grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
    GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
    GL_MESA_texture_signed_rgba, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_light_max_exponent,
    GL_OES_fbo_render_mipmap, GL_OES_get_program_binary, GL_OES_mapbuffer
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Tue Feb 20, 2018 11:47 pm    Post subject: Reply with quote

Were you using 3d acceleration with other applications before?

According to glxinfo and your xorg log, it looks like 3d acceleration is working. Is glxgears running at full speed?

What program exactly is reporting that rendering is done in software?

I hope it's not something like what happened to my Gnome3/ATI R200 box where the software explicitly disabled hardware rendering due to hardware code bugs, and thus renders in software with no indication of why until I googled. I ended up switching to xfce on that box because graphics performance was miserable with software rendering; but that's just what I ended up doing...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 156

PostPosted: Wed Feb 21, 2018 10:42 am    Post subject: Reply with quote

Check ~/.xsession-errors for messages.
Check if you're in the video group.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42596
Location: 56N 3W

PostPosted: Wed Feb 21, 2018 10:53 am    Post subject: Reply with quote

Prof. Frink,

What does
Code:
glxinfo | head -n6
say?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Prof. Frink
n00b
n00b


Joined: 07 Jan 2017
Posts: 69

PostPosted: Wed Feb 21, 2018 2:39 pm    Post subject: Reply with quote

After including "intel i965" to VIDEO_CARDS variable glxinfo -i | grep render reports

Code:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965



eccerr0r wrote:
Were you using 3d acceleration with other applications before?


I used 3d-applications, yes.

eccerr0r wrote:

According to glxinfo and your xorg log, it looks like 3d acceleration is working. Is glxgears running at full speed?


Code:
$ glxgears
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
7078 frames in 5.0 seconds = 1415.571 FPS
7090 frames in 5.0 seconds = 1417.906 FPS
6574 frames in 5.0 seconds = 1314.687 FPS


The CPU usage goes up to 100% while running glxgears.

eccerr0r wrote:

What program exactly is reporting that rendering is done in software?


It's cinnamon itself which reports to be running in "software rendering mode" via libnotify, ever when I login.

hhfeuer wrote:

Check ~/.xsession-errors for messages.


xsession-errors

hhfeuer wrote:

Check if you're in the video group.


I am.

NeddySeagoon wrote:

Prof. Frink,

What does
Code:
glxinfo | head -n6   

say?


Code:
 glxinfo | head -n6
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42596
Location: 56N 3W

PostPosted: Wed Feb 21, 2018 3:01 pm    Post subject: Reply with quote

Prof. Frink,

Your VIDEO_CARDS options are used both by xorg-drivers and mesa to build the right things for your hardware.

mesa understands
Code:
 VIDEO_CARDS="freedreno i915 i965 ilo imx intel nouveau r100 r200 r300 r600 radeon radeonsi vc4 virgl vivante vmware"

So you need i965 to keep mesa happy.

xorg-drivers understands
Code:
VIDEO_CARDS="amdgpu apm ark ast chips cirrus dummy epson fbdev fglrx freedreno geode glint i128 i740 i915 i965 impact intel mach64 mga modesetting neomagic newport nouveau nv nvidia omap omapfb qxl r128 radeon radeonsi rendition s3 s3virge savage siliconmotion sis sisusb sunbw2 suncg14 suncg3 suncg6 sunffb sunleo suntcx tdfx tegra tga trident tseng v4l vc4 vesa via virtualbox vmware voodoo"


It has the same range of intel options. i915 i965 intel.

The error
Code:
libGL error: failed to load driver: i965
is a hint that you either have the wrong VIDEO_CARDS setting, or if its correct, you need to rebuild mesa or xorg-drivers or both.
What does
Code:
emerge -pv  mesa xorg-drivers
tell?
There will be an * next to the i965 entry if it will be new. i965 needs to be in your VIDEO cards too.

You are right about reinstalling. It won't ever fix Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Prof. Frink
n00b
n00b


Joined: 07 Jan 2017
Posts: 69

PostPosted: Wed Feb 21, 2018 3:12 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Prof. Frink,

The error
Code:
libGL error: failed to load driver: i965
is a hint that you either have the wrong VIDEO_CARDS setting, or if its correct, you need to rebuild mesa or xorg-drivers or both.


You are absolutely right, I somehow added "intel i915" instead of "intel i965" to the VIDEO_CARDS variable, fixing this, fixed all problems. Thank you all.
Back to top
View user's profile Send private message
k9dog
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2009
Posts: 84
Location: Denmark

PostPosted: Sun Mar 18, 2018 2:52 am    Post subject: Reply with quote

Check if you need something like vdpau, vaapi to accelerate to be installed. I'm using another architecture (not intel GPU), but having both run machines with AMD and nvidia I seen a bit of trouble. My nvidia need an old legacy driver, I am not sure if there is such a thing for intel, but for me it means I have to limit the major version number. Updates still happen on the minor version number.
My old fit-PC2 (Atom GMA500) also had an intel part, which I never really got running due to lack of support from intel.
Ubuntu page did mention "sudo apt-get install libvdpau-va-gl1 i965-va-driver". Absolutely not sure if that helps. There is also some environment variables that seems to be important. I think mostly for vdpauinfo where you have VDPAU_DRIVER.
In Gentoo we got the use flags, which does ensure features get turned on/off for system and single packages, I'd look for info how to set your card up and check if I can run vdpauinfo. You might find similar things for other distributions where needed. Not sure about Mint.
Arch Linux got some info too. Seems vaapi is mostly used. But not sure vaapi goes much beyond decoding, so I'd look into vdpau too if I was you. I want to refer you to https://wiki.archlinux.org/index.php/Hardware_video_acceleration if it's not too inappropriate on this forum.
mplayer needs to have decoding features enabled, you need to check what your card supports after vdpau is installed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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