LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2014, 12:53 PM   #1
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Rep: Reputation: 186Reputation: 186
Slackware -current :- Is hardware acceleration working or not on my machine?


Continuing from this thread - confused-at-opengl-version-in-current, I removed the 3.17.0-rc2 completely from my Slackware -current machine. Ran xorgsetup. Still the openGL appears to be :-

Code:
bash-4.3$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)
OpenGL version string: 3.0 Mesa 10.2.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
Restarted without an xorg.conf too, no effect.

Direct rendering is enabled though :-
Code:
bash-4.3$ glxinfo | grep -i direct
direct rendering: Yes
The LIBGL_DEBUG=verbose glxinfo>/dev/null test sheds some light but what should I interpret from this?:-
Code:
libGL: screen 0 does not appear to be DRI3 capable
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib64/xorg/modules/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/cruise/.drirc: No such file or directory.
libGL: Can't open configuration file /home/cruise/.drirc: No such file or directory.
Another confusing part is, lspci -nnk output :-
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 12)
        Subsystem: Lenovo Device [17aa:215a]
        Kernel driver in use: i915
        Kernel modules: i915
The below is Xorg.0.log and Xorg.1.log for dri2 :-

Code:
bash-4.3# grep -i dri2 /var/log/Xorg.1.log
[    95.496] Initializing built-in extension DRI2
[    95.496] (II) LoadModule: "dri2"
[    95.496] (II) Module "dri2" already built-in
[    95.506] (II) Loading sub module "dri2"
[    95.506] (II) LoadModule: "dri2"
[    95.506] (II) Module "dri2" already built-in
[    95.617] (II) intel(0): [DRI2] Setup complete
[    95.617] (II) intel(0): [DRI2]   DRI driver: i965
[    95.617] (II) intel(0): [DRI2]   VDPAU driver: i965
[    95.617] (II) intel(0): direct rendering: DRI2 enabled
[    95.634] (II) GLX: Initialized DRI2 GL provider for screen 0
Code:
bash-4.3# grep -i dri2 /var/log/Xorg.0.log
[    52.291] Initializing built-in extension DRI2
[    52.694] (II) AIGLX: Screen 0 is not DRI2 capable
The user is in video group.

My query is, IS hardware acceleration NOT really working or I'm just freaking out for no reason?
 
Old 09-18-2014, 01:36 PM   #2
Hyonane
Member
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 32

Rep: Reputation: 2
it does look like its working. U just freaking out.
 
Old 09-18-2014, 02:20 PM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by PrinceCruise View Post
Continuing from this thread - confused-at-opengl-version-in-current, I removed the 3.17.0-rc2 completely from my Slackware -current machine. Ran xorgsetup. Still the openGL appears to be :-

Code:
bash-4.3$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)
OpenGL version string: 3.0 Mesa 10.2.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
Restarted without an xorg.conf too, no effect.

Direct rendering is enabled though :-
Code:
bash-4.3$ glxinfo | grep -i direct
direct rendering: Yes
The LIBGL_DEBUG=verbose glxinfo>/dev/null test sheds some light but what should I interpret from this?:-
Code:
libGL: screen 0 does not appear to be DRI3 capable
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib64/xorg/modules/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/cruise/.drirc: No such file or directory.
libGL: Can't open configuration file /home/cruise/.drirc: No such file or directory.
Another confusing part is, lspci -nnk output :-
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 12)
        Subsystem: Lenovo Device [17aa:215a]
        Kernel driver in use: i915
        Kernel modules: i915
The below is Xorg.0.log and Xorg.1.log for dri2 :-

Code:
bash-4.3# grep -i dri2 /var/log/Xorg.1.log
[    95.496] Initializing built-in extension DRI2
[    95.496] (II) LoadModule: "dri2"
[    95.496] (II) Module "dri2" already built-in
[    95.506] (II) Loading sub module "dri2"
[    95.506] (II) LoadModule: "dri2"
[    95.506] (II) Module "dri2" already built-in
[    95.617] (II) intel(0): [DRI2] Setup complete
[    95.617] (II) intel(0): [DRI2]   DRI driver: i965
[    95.617] (II) intel(0): [DRI2]   VDPAU driver: i965
[    95.617] (II) intel(0): direct rendering: DRI2 enabled
[    95.634] (II) GLX: Initialized DRI2 GL provider for screen 0
Code:
bash-4.3# grep -i dri2 /var/log/Xorg.0.log
[    52.291] Initializing built-in extension DRI2
[    52.694] (II) AIGLX: Screen 0 is not DRI2 capable
The user is in video group.

My query is, IS hardware acceleration NOT really working or I'm just freaking out for no reason?
No. You do not have hardware acceleration right now. Your system got the software fallback, in this case, llvmpipe, which is an software rasterizer similar with the classic swrast, but with better performances.

Last edited by Darth Vader; 09-18-2014 at 02:23 PM.
 
Old 09-18-2014, 02:32 PM   #4
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by Darth Vader View Post
No. You do not have hardware acceleration right now. Your system got the software fallback, in this case, llvmpipe, which is an software rasterizer similar with the classic swrast, but with better performances.
Yup, looking at the llvmpipe. How can I enable it, the way it used to be errr....I don't know when.
Why does Direct rendering say YES, could you please explain?

Regards.
 
Old 09-18-2014, 02:55 PM   #5
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by PrinceCruise View Post
Yup, looking at the llvmpipe. How can I enable it, the way it used to be errr....I don't know when.
Why does Direct rendering say YES, could you please explain?

Regards.
Technically, yes, you have direct rendering, because the llvmpipe is a special software rasterizer which use the LLVM to emulate the 3D instructions executed by videocard, but using just and only the CPU power. Of course, the performance is low, even still it is much better that the classic swrast. Think about something similar with Windows's VGA Save Driver, capable to drive the desktop, but not the games.

So, with an powerful CPU you can expect from llvmpipe on working the 3D effects of KDE(4), but for gaming, is too slow.

In other hand, will be nice to show the entire content of /var/log/Xorg.log and /var/log/dmesg, also the output of "lspci -vvv", to be able to comment further.

Last edited by Darth Vader; 09-18-2014 at 02:59 PM.
 
Old 09-18-2014, 10:03 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Did you try to check the xorg.conf for the correct driver?

If you have an Intel chipset it should be using the "intel" driver.

Last edited by ReaperX7; 09-18-2014 at 10:05 PM.
 
Old 09-19-2014, 12:10 PM   #7
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by Darth Vader View Post
Technically, yes, you have direct rendering, because the llvmpipe is a special software rasterizer which use the LLVM to emulate the 3D instructions executed by videocard, but using just and only the CPU power. Of course, the performance is low, even still it is much better that the classic swrast. Think about something similar with Windows's VGA Save Driver, capable to drive the desktop, but not the games.

So, with an powerful CPU you can expect from llvmpipe on working the 3D effects of KDE(4), but for gaming, is too slow.

In other hand, will be nice to show the entire content of /var/log/Xorg.log and /var/log/dmesg, also the output of "lspci -vvv", to be able to comment further.
Here ya go mate :-

Xorg.0.log :- http://pastebin.com/TBX6aUVb
Xorg.1.log :- http://pastebin.com/AYGi4QPN

/var/log/dmesg :- http://pastebin.com/zDDyjSRR

lspci -vvv :- http://pastebin.com/BUq4W5C5

Regards.
 
Old 09-19-2014, 12:17 PM   #8
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by ReaperX7 View Post
Did you try to check the xorg.conf for the correct driver?

If you have an Intel chipset it should be using the "intel" driver.
Hi Reaper, I have two files in my /etc/X11/ - xorg.conf and xorg.conf-vesa. None of which has any entry of Intel driver in any section.
The xorg.conf.d/ folder is empty.

Anything missing?

Regards.
 
Old 09-19-2014, 01:07 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Go to xorg.conf, find the driver section (should down near the bottom) look for the first device listed, and change the "driver" to "intel", and restart your X-Session.
 
1 members found this post helpful.
Old 09-19-2014, 01:25 PM   #10
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by ReaperX7 View Post
Go to xorg.conf, find the driver section (should down near the bottom) look for the first device listed, and change the "driver" to "intel", and restart your X-Session.
Hey Reaper, did you mean the "Device" section, because there's no driver section.

Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        Identifier  "Card0"
        Driver      "modesetting"
        BusID       "PCI:0:2:0"
EndSection
Do you want me to change the Driver from modesetting to Intel?

Regards.
 
Old 09-20-2014, 05:07 AM   #11
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Update:-

I removed modesetting and added intel in the device section for Driver. Rebooted and voila :-
Code:
bash-4.3$ glxinfo | grep -i opengl
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string: 2.1 Mesa 10.2.6
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
Further checked by running glxgears in one terminal window and running intel_gpu_top in other terminal. While the glxgears test runs, the Render Busy shows in percentage. Previously it was 0 which was because the CPU was in use, not GPU. So it looks good now I think.

Much thanks to Reaper for this. Anything else can be verified here?

Regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hardware acceleration on, but Compiz not working. mohaas05 Linux - Hardware 2 11-28-2008 02:00 PM
ATI xpress 200 - is hardware acceleration actually working? jacksmash Linux - Hardware 3 03-04-2007 07:32 AM
Need Help Getting Hardware Acceleration Working On Linux snowboard4fod Linux - Newbie 2 10-02-2005 08:47 PM
Hardware acceleration working/not working. Out of ideas Emist Linux - Hardware 12 07-16-2005 02:32 PM
Hardware Acceleration not working ajelston Linux - Laptop and Netbook 13 04-18-2005 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:19 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