Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 01-02-2016, 04:21 AM   #1
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Rep: Reputation: Disabled
Question Need help with optimus laptop

I have an msi ge62 6qd apache pro laptop with a hybrid intel/ nvidia gtx960m
now i have tried linux mint on it (17.3 rosa) and it does work well so i know
it is possible to do make this work. I am just trying it with slackware because
i like more of a source based distro i find it is more powerful (and challenging)
Right now i am using slackware current as of this posts date and have already installed the current bumblebee according to the automated script on this site
the install was easy enough although functionality was a bit of an issue. All but
the option "none" for PMMethod in bumblebee.conf locked up my laptop. And when i used "none" for PMMethod using startx to start x-windows crashed it with this Xorg.0.log output:

X.Org X Server 1.18.0
Release Date: 2015-11-09
[ 335.417] X Protocol Version 11, Revision 0
[ 335.429] Build Operating System: Slackware 14.2 Slackware Linux Project
[ 335.442] Current Operating System: Linux DavesLapTop 4.1.15-smp #1 SMP Sat Jan 2 08:23:18 PST 2016 i686
[ 335.442] Kernel command line: BOOT_IMAGE=Linux-4.1.15 ro root=801 vt.default_utf8=0
[ 335.467] Build Date: 19 November 2015 04:09:51PM
[ 335.480]
[ 335.494] Current version of pixman: 0.33.6
[ 335.520] Before reporting problems, check
to make sure that you have the latest version.
[ 335.520] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 335.572] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 2 09:31:45 2016
[ 335.635] (==) Using config file: "/etc/X11/xorg.conf"
[ 335.648] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 335.686] (==) No Layout section. Using the first Screen section.
[ 335.686] (**) |-->Screen "Screen0" (0)
[ 335.686] (**) | |-->Monitor "Monitor0"
[ 335.703] (**) | |-->Device "intelgpu0"
[ 335.703] (**) | |-->GPUDevice "nvidiagpu1"
[ 335.703] (==) Automatically adding devices
[ 335.703] (==) Automatically enabling devices
[ 335.703] (==) Automatically adding GPU devices
[ 335.708] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 335.708] (WW) The directory "/usr/share/fonts/local" does not exist.
[ 335.708] Entry deleted from font path.
[ 335.708] (WW) The directory "/usr/share/fonts/CID" does not exist.
[ 335.708] Entry deleted from font path.
[ 335.738] (==) FontPath set to:
[ 335.738] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 335.738] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 335.739] (II) Loader magic: 0x827a640
[ 335.739] (II) Module ABI versions:
[ 335.739] X.Org ANSI C Emulation: 0.4
[ 335.739] X.Org Video Driver: 20.0
[ 335.739] X.Org XInput driver : 22.1
[ 335.739] X.Org Server Extension : 9.0
[ 335.739] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 335.740] (--) PCI:*(0:0:2:0) 8086:191b:1462:115a rev 6, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64
[ 335.740] (--) PCI: (0:1:0:0) 10de:139b:1462:115a rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 335.740] (II) Open ACPI successful (/var/run/acpid.socket)
[ 335.740] (II) LoadModule: "glx"
[ 335.833] (II) Loading /usr/lib/xorg/modules/extensions/
[ 335.840] (II) Module glx: vendor="X.Org Foundation"
[ 335.840] compiled for 1.18.0, module version = 1.0.0
[ 335.840] ABI class: X.Org Server Extension, version 9.0
[ 335.840] (==) AIGLX enabled
[ 335.840] (II) LoadModule: "intel"
[ 335.841] (II) Loading /usr/lib/xorg/modules/drivers/
[ 335.914] (II) Module intel: vendor="X.Org Foundation"
[ 335.914] compiled for 1.18.0, module version = 2.99.917
[ 335.914] Module class: X.Org Video Driver
[ 335.914] ABI class: X.Org Video Driver, version 20.0
[ 335.914] (II) LoadModule: "nvidia"
[ 335.954] (WW) Warning, couldn't open module nvidia
[ 335.954] (II) UnloadModule: "nvidia"
[ 335.954] (II) Unloading nvidia
[ 335.954] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 335.954] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 335.954] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 335.954] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 335.954] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 335.954] (--) using VT number 7

[ 335.985] (EE) No devices detected.
[ 335.985] (EE)
Fatal server error:
[ 335.985] (EE) no screens found(EE)
[ 335.985] (EE)
Please consult the The X.Org Foundation support
for help.
[ 335.985] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 335.985] (EE)

this is after i modprobed nvidia without an error and when i do an lsmod i do not
see the module.

my xorg.conf is this:

Section "Screen"
Identifier "Screen0"
Device "intelgpu0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
SubSection "Display"
Depth 24
Modes "1980x1080_60.00"

Section "Monitor"
Identifier "Monitor0"
Option "Enable" "true"

Section "Device"
Identifier "intelgpu0"
Driver "intel"
Option "XvMC" "true"
Option "UseEvents" "true"
Option "AccelMethod" "UXA"
BusID "PCI:0:2:0"

Section "Device"
Identifier "nvidiagpu1"
Driver "nvidia"
BusID "PCI:1:0:0"

An lspci in a console gives this output:
00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #4 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Qualcomm Atheros Device e0a1 (rev 10)
04:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller

Sorry if this is too much information, i am just hoping some one has some advice
on this one.
Old 01-02-2016, 11:16 AM   #2
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 442
Blog Entries: 3

Rep: Reputation: 114Reputation: 114
Need help with optimus laptop

Did you tried without any xorg.conf file ?

Could you post the lsmod output ?
Old 01-04-2016, 08:09 AM   #3
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes i did try without an xorg.conf and did not get a working xorg, the server crashed out. As for the lsmod question:
Module Size Used by
uvcvideo 73728 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_core 49152 1 uvcvideo
v4l2_common 16384 1 videobuf2_core
videodev 139264 3 uvcvideo,v4l2_common,videobuf2_core
media 24576 2 uvcvideo,videodev
hidp 24576 0
bbswitch 16384 0
rfcomm 61440 8
bnep 20480 2
snd_hda_codec_hdmi 49152 1
binfmt_misc 20480 1
snd_hda_codec_realtek 69632 1
snd_hda_codec_generic 65536 1 snd_hda_codec_realtek
rtsx_usb_ms 20480 0
memstick 16384 1 rtsx_usb_ms
nvidia 7790592 33
arc4 16384 2
iwlmvm 253952 0
mac80211 618496 1 iwlmvm
snd_hda_intel 32768 4 snd_hda_codec_hdmi
snd_hda_controller 32768 1 snd_hda_intel
snd_hda_codec 122880 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 16384 1 snd_hda_codec
mxm_wmi 16384 0
msi_wmi 16384 0
sparse_keymap 16384 1 msi_wmi
dm_multipath 24576 0
x86_pkg_temp_thermal 16384 0
scsi_dh 16384 1 dm_multipath
coretemp 16384 0
kvm 413696 0
snd_pcm 94208 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
crc32_pclmul 16384 0
aesni_intel 20480 1
i915_bpo 1019904 4
aes_i586 20480 1 aesni_intel
xts 16384 1 aesni_intel
lrw 16384 1 aesni_intel
gf128mul 16384 2 lrw,xts
snd_seq_midi 16384 0
ablk_helper 16384 1 aesni_intel
snd_seq_midi_event 16384 1 snd_seq_midi
cryptd 16384 1 ablk_helper
snd_rawmidi 28672 1 snd_seq_midi
snd_seq 57344 2 snd_seq_midi_event,snd_seq_midi
iwlwifi 167936 1 iwlmvm
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
intel_ips 20480 1 i915_bpo
joydev 20480 0
snd_timer 28672 2 snd_pcm,snd_seq
cfg80211 450560 3 iwlwifi,mac80211,iwlmvm
drm_kms_helper 114688 1 i915_bpo
serio_raw 16384 0
snd 69632 17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_cod ec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
btusb 32768 0
bluetooth 430080 23 bnep,hidp,btusb,rfcomm
drm 286720 7 i915_bpo,drm_kms_helper,nvidia
soundcore 16384 2 snd,snd_hda_codec
alx 36864 0
mdio 16384 1 alx
i2c_algo_bit 16384 1 i915_bpo
shpchp 32768 0
wmi 20480 2 msi_wmi,mxm_wmi
i2c_hid 20480 0
mac_hid 16384 0
acpi_pad 16384 0
parport_pc 32768 0
ppdev 20480 0
lp 16384 0
parport 40960 3 lp,ppdev,parport_pc
dm_mirror 24576 0
dm_region_hash 20480 1 dm_mirror
dm_log 20480 2 dm_region_hash,dm_mirror
hid_generic 16384 0
rtsx_usb_sdmmc 28672 0
usbhid 49152 0
hid 98304 4 hidp,i2c_hid,hid_generic,usbhid
rtsx_usb 20480 2 rtsx_usb_sdmmc,rtsx_usb_ms
ahci 32768 1
psmouse 102400 0
libahci 32768 1 ahci
video 20480 1 i915_bpo

now that is from my laptop as of now with linux mint 17.3 rosa running on it and is an ideal lsmod for my setup.
here is my other thread for more info on this:

sorry for the confusion i had to post there first

Last edited by SunnyJim; 01-04-2016 at 08:11 AM.
Old 01-10-2016, 04:51 AM   #4
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
I finally managed to get xorg to work with the optimus on slackware current but it was unstable and needs a lot more work.
An up to date kernel and a sufficiently updated x11 software stack will work even without an xorg.conf file however it is
possible to get nvidia to work with a properly made xorg.conf but bumblebees power management had to be shut off. Glxinfo
when activated by optirun does show nvidia is working but glxgears is slower for some reason then intel as well as the mouse
wheel being really sluggish in firefox and opera but not in konqueror. In any case i went back to linux mint 17.3 rosa for now
because i have better support for my msi laptop, but i still love slackware.
Old 01-10-2016, 06:16 AM   #5
Registered: Oct 2005
Location: France
Distribution: Slackware 14.2 64bit
Posts: 915
Blog Entries: 5

Rep: Reputation: 145Reputation: 145
[ 335.954] (II) UnloadModule: "nvidia"
[ 335.954] (II) Unloading nvidia
[ 335.954] (EE) Failed to load module "nvidia" (module does not exist, 0)
The error when you tried to start X was due to missing nvidia module. Did you build and install the proprietary nvidia driver and kernel module?

Last edited by gegechris99; 01-10-2016 at 06:18 AM. Reason: clarify: proprietary nvidia driver and kernel module
Old 01-10-2016, 08:55 PM   #6
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Oh yeah i did have nvidia built and installed not a problem there, if you look at my last post i even indicate that i managed to get it
working just not very well. software stack needs tweaking. In time i am sure this will happen and my hardware will be fully supported.
Yeah xorg log files can be informing but misleading by themselves, you gotta see the bigger picture.
Old 01-18-2016, 04:52 AM   #7
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Success!! well mostly anyway. I did an install of slackware and updated to current (14.2) with a linux-4.4 kernel.
I can tell you there is a definite speed up on the skylake chipset, but in order to boot it up i had to add "intel_idle.max_cstate=1"
to the boot options in grub to get it to not lock up and intel preliminary hardware support for the intel graphics driver has to be
enabled as well. Bumblebee had to be used to control optimus and power management for bumblebee had to be set to none or
a lock up occurred. 3-d performance was there just not very consistent. Glxgears with vsync to blank set to off gave a higher frame rate with unaccelerated glxgears than it did with either primusrun or optirun glxgears!. An accelerated wine run windows game like
Diablo II ran Awesomely in unaccelerated mesa, better than it ever did for me but crapped out on primusrun even though primusrun glxinfo indicated that nvidia was working. Still potential is seen here even if work still is in progress . Pulseaudio working out of the box was also nice as well with the update. Perhaps a port of the nvidia-prime/applet from linux mint/ubuntu would be a more
effective and convenient way of contolling optimus in this case. A few more tweaks is all that may be needed.
Old 05-21-2017, 02:14 PM   #8
LQ Newbie
Registered: Jan 2016
Location: Canada
Distribution: slackware and linux mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Cool update on this thread

Sigh. Well it looks like i much cracked this one. Pretty much stable now. First i tried bumblebee and that works, no horizontal tearing but it is a bit kludgy and
i like some thing a little simpler in implementation like prime sync. Well simpler it was not and it took a bit of doing. First i had to update xorg and for that i downloaded xorg source from slackware current fulfilled its' dependencies and installed it. Then i installed linux-4.10.13 along with the nvidia-drivers from nvidia
(which had to be patched to compile, ubuntu has a patch for it) the 375.59 version. So software stack and kernel are newer and it should work. Not just right yet but almost.
With out a correct .xinitrc and xorg.conf you get a black screen, which is what i had until i corrected these oversights.
.xinitrc is in effect:

# try this in a seperate terminal when xorg is started
#xrandr --output eDP-1-1 --set 'PRIME Synchronization' '1' # is prime sync on !
#xrandr --output eDP-1-1 --set 'PRIME Synchronization' '0' # is prime sync off
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96
ck-launch-session dbus-launch --exit-with-session startkde

and i used the xorg.conf from :

And finally i got screen! and with prime sync too when i used:
"xrandr --output eDP-1-1 --set 'PRIME Synchronization' '1' "

"xrandr --verbose" will tell you what you have and i had what i was looking for.

No more primusrun or f%$^& optirun either.
But i had to set the desktop effects compositing type to xrender and the qt graphics system to native to because for some reason kwin doesn't deal
so well with prime sync and you get GL errors when the laptop sleeps and an unstable desktop if you don't change these things. Still this is worlds better
and i have not had much of a problem since i mad these changes and my opengl games like in steam and wine seem to be pretty stable so far. So i am anticipating
eventual stable prime sync out of the box for most if not all optimus laptops with slackware. Now try this with multilib and see how you like it.
No this has not been without its problems but i like to experiment and as i said already i think this will be stable out of the box eventually.

Last edited by SunnyJim; 05-22-2017 at 11:11 PM.


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
[SOLVED] TIFU - Optimus laptop, Ubuntu additional drivers PClOStinspace Linux - Hardware 3 05-03-2015 12:35 PM
Decent gaming laptop - How to avoid Optimus? kmm486 Linux - Laptop and Netbook 2 05-07-2013 02:40 AM
usb dvb-t in hp optimus laptop mainam Slackware 0 04-17-2013 05:44 AM
Dual Display using HDMI on a Nvidia Optimus laptop tombelcher7 Linux - Desktop 3 04-04-2013 04:57 PM
Optimus in linux laptop ismari Linux - Laptop and Netbook 6 02-02-2012 03:37 AM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 12:50 PM.

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