Commands history:
aptitude remove libegl1-mesa
aptitude purge nvidia*
aptitude remove nvidia-alternative
apt remove glx-alternative-nvidia
aptitude remove libegl-nvidia0
aptitude install xserver-xorg-video-intel
aptitude install xorg
aptitude install bumblebee-nvidia
aptitude install nvidia-driver
aptitude remove nvidia-legacy-304xx-driver
aptitude remove xserver-xorg-legacy
aptitude remove nvidia-legacy-304xx-kernel-support
apt remove nvidia-legacy-check
aptitude install nvidia-driver-libs-nonglvnd
aptitude install primus
In my opinion, for that laptop you may be better off using a rolling release linux with latest kernels. Not to say that Devuan would not be able to run it, i have no experience in newer types of laptops. You might try artix linux if you dont want systemd as init. They are breaking new ground and are pretty close to staying on par with arch linux.
https://artixlinux.org/
Thank you, I prefer Devuan now. I had same problem on Debian which I've solved. FPS in one 3D game even jumped from 40 to 100
It has little improved in Devuan, but some dependency problems still persists:
# apt install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# aptitude install
The following NEW packages will be installed:
nvidia-legacy-304xx-driver{b} nvidia-legacy-304xx-kernel-dkms{b}
The following packages will be REMOVED:
libwebrtc-audio-processing-0{u} libxcb-glx0:i386{u} libxcb-present0{u}
libxdamage1:i386{u} rtkit{u}
The following packages are RECOMMENDED but will NOT be installed:
nvidia-persistenced nvidia-persistenced:i386 nvidia-settings-legacy-304xx
0 packages upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
Need to get 4026 kB of archives. After unpacking 16.3 MB will be used.
The following packages have unmet dependencies:
nvidia-legacy-304xx-driver : Depends: nvidia-legacy-304xx-driver-libs (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-driver-bin (= 304.137-5~deb9u1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia-legacy-304xx (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-vdpau-driver (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-alternative (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-support but it is not going to be installed
libgl1-mesa-glx : Depends: libxcb-present0 but it is not going to be installed
libgl1-mesa-glx:i386 : Depends: libxcb-glx0:i386 (>= 1.8) but it is not going to be installed
Depends: libxdamage1:i386 (>= 1:1.1) but it is not going to be installed
nvidia-legacy-304xx-kernel-dkms : Depends: dkms (>= 2.1.0.0) but it is not going to be installed
Depends: nvidia-legacy-304xx-kernel-support--v1 which is a virtual package, provided by:
- nvidia-legacy-304xx-kernel-support:i386 (304.137-5~bpo9+1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support (304.137-5~bpo9+1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support:i386 (304.137-5~deb9u1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support (304.137-5~deb9u1), but it is not going to be installed
The following actions will resolve these dependencies:
Install the following packages:
1) dkms [2.3-2 (now, stable, testing)]
2) fakeroot:i386 [1.21-3.1 (stable, testing)]
3) libfakeroot:i386 [1.21-3.1 (stable, testing)]
4) libgl1-nvidia-legacy-304xx-glx [304.137-5~deb9u1 (stable)]
5) libnvidia-legacy-304xx-cfg1 [304.137-5~deb9u1 (stable)]
6) libnvidia-legacy-304xx-glcore [304.137-5~deb9u1 (stable)]
7) libnvidia-legacy-304xx-ml1 [304.137-5~deb9u1 (stable)]
8) linux-headers-amd64 [4.9+80+deb9u5 (stable, testing)]
9) nvidia-kernel-common:i386 [20151021+4 (stable)]
10) nvidia-legacy-304xx-alternative:i386 [304.137-5~deb9u1 (stable)]
11) nvidia-legacy-304xx-driver-bin [304.137-5~deb9u1 (stable)]
12) nvidia-legacy-304xx-driver-libs [304.137-5~deb9u1 (stable)]
13) nvidia-legacy-304xx-kernel-support:i386 [304.137-5~deb9u1 (stable)]
14) nvidia-legacy-304xx-vdpau-driver [304.137-5~deb9u1 (stable)]
15) nvidia-modprobe:i386 [384.111-2~deb9u1 (stable)]
16) nvidia-settings-legacy-304xx [304.134-1 (stable)]
17) nvidia-support:i386 [20151021+4 (stable)]
18) pkgconf:i386 [0.9.12-6 (stable, testing)]
19) xserver-xorg-video-nvidia-legacy-304xx [304.137-5~deb9u1 (stable)]
Keep the following packages at their current version:
20) libxcb-glx0:i386 [1.12-1 (now, stable, testing)]
21) libxcb-present0 [1.12-1 (now, stable, testing)]
22) libxdamage1:i386 [1:1.1.4-2+b3 (now, stable, testing)]
Leave the following dependencies unresolved:
23) nvidia-legacy-304xx-driver-libs recommends nvidia-legacy-304xx-driver-libs-i386
Accept this solution? [Y/n/q/?]
# apt --installed list | grep nvidia
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
glx-alternative-nvidia/stable,now 0.8.3~deb9u1 amd64 [installed]
libegl-nvidia0/stable-backports,now 390.67-2~bpo9+1 amd64 [installed,automatic]
libnvidia-eglcore/stable-backports,now 390.67-2~bpo9+1 amd64 [installed]
nvidia-alternative/stable-backports,now 390.67-2~bpo9+1 amd64 [installed,automatic]
nvidia-egl-common/stable-backports,now 390.67-2~bpo9+1 amd64 [installed,automatic]
nvidia-egl-icd/stable-backports,now 390.67-2~bpo9+1 amd64 [installed,automatic]
nvidia-installer-cleanup/stable,now 20151021+4 amd64 [installed,automatic]
nvidia-legacy-check/stable,now 384.130-1 amd64 [installed,automatic]
Ah, I was wondering what all the Nvidia stuff was about when lshw only listed Intel. I forgot about Optimus. I'll have to bow out. That's out of my league.
I would call it "100 % optimus problem" if all package dependencies would be ok. I think I need repair package dependencies at first.
]]>If you just got the kernel upgrade to 4.9.0-7, try booting the previous kernel (4.9.0-6). Maybe the nvidia packages need to catch up. If you installed from the nvidia binaries instead of from packages in the repo, reinstall/rebuild the driver.
Booting the previous kernel (4.9.0-6) didn't help. I installed nvidia from packages in the repo.
]]>If you have nvidia graphics are you ok in using the nouveau drivers?
If so try below if not already installed. But before you do see my edited post above yours.
sudo apt-get install xserver-xorg-video-nouveau
AFAIK I can't use nouveau (because of Optimus)
$ inxi -GSMr
System: Host: hostname Kernel: 4.9.0-7-amd64 x86_64 (64 bit) Desktop: Openbox 3.6.1
Distro: Devuan GNU/Linux ascii
Machine: Device: laptop System: Micro-Star product: GE70 REV:1.0
Mobo: Micro-Star model: MS-1756 v: REV:1.0 BIOS: American Megatrends v: E1756IMS.514 date: 03/12/2013
Graphics: Card-1: Intel 3rd Gen Core processor Graphics Controller
Card-2: NVIDIA GK107M [GeForce GTX 660M]
Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.02hz
GLX Renderer: N/A GLX Version: N/A
Repos: Active apt sources in file: /etc/apt/sources.list
deb http://pkgmaster.devuan.org/merged/ ascii main contrib non-free
deb http://pkgmaster.devuan.org/merged/ ascii-updates main contrib non-free
deb http://pkgmaster.devuan.org/merged/ ascii-security main contrib non-free
deb http://pkgmaster.devuan.org/merged/ ascii-backports main contrib non-free
deb http://packages.devuan.org/merged/ ascii main
deb-src http://packages.devuan.org/merged/ ascii main
Would it be safe to uninstall nvidia driver and related sw and then install again ? If yes, what package manager is most safe in term of preventing / solving dependencies problems ?
]]>If so try below if not already installed. But before you do see my edited post above yours.
sudo apt-get install xserver-xorg-video-nouveau
Do you have an nvidia graphics card?
Yes, (plus integrated intel)
]]>I find the program inxi can help a lot with getting much needed info on my system.
If you have backports enabled in /etc/apt/sources.list you should be able to download a current version of inxi.(if you want to).
sudo apt-get -t ascii install inxi
then in terminal after the inxi program has installed, as user (not root).
inxi -GSMr
That command gives quite a comprehensive overview,, you should man inxi before you post results to know what is being displayed.
]]>As Panopticon said, what's in xorg.conf and/or xorg.conf.d? Also, do you have xserver-xorg-video-intel installed?
Hello, thank you both for reply.
xorg.conf is not present, /etc/X11/xorg.conf.d/ is empty.
# apt --installed list | grep xserver-xorg-video-intel
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
xserver-xorg-video-intel/stable,testing,now 2:2.99.917+git20161206-1 amd64 [installed,automatic]
# aptitude install
The following NEW packages will be installed:
nvidia-legacy-304xx-driver{b} nvidia-legacy-304xx-kernel-dkms{b}
The following packages will be REMOVED:
freeglut3{u} libaec0{u} libarmadillo7{u} libarpack2{u} libcoin80v5{u} libdap23{u}
libdapclient6v5{u} libdapserver7v5{u} libepsilon1{u} libfftw3-single3{u} libfreexl1{u}
libgdal20{u} libgeos-3.5.1{u} libgeos-c1v5{u} libgeotiff2{u} libgraphicsmagick-q16-3{u}
libhdf4-0-alt{u} libhdf5-100{u} libhtsengine1{u} libiso9660-8{u} libjs-bootstrap{u}
libjs-excanvas{u} libjs-jquery-flot{u} libjs-jquery-ui{u}
libjs-jquery-ui-theme-smoothness{u} libjs-leaflet{u} libjs-requirejs{u}
libjs-requirejs-text{u} libjson-c3{u} libkmlbase1{u} libkmlconvenience1{u}
libkmldom1{u} libkmlengine1{u} libkmlregionator1{u} libkmlxsd1{u} libmariadbclient18{u}
libminizip1{u} libnetcdf11{u} libogdi3.2{u} libopenthreads20{u} libplib1{u}
libproj12{u} libqhull7{u} libqt4-dbus{u} libqt4-opengl{u} libqt4-xml{u} libqtcore4{u}
libqtdbus4{u} libqtgui4{u} libspatialite7{u} libsuperlu5{u} libsz2{u} libudns0{u}
liburiparser1{u} libuv1{u} libvcdinfo0{u} libwebrtc-audio-processing-0{u}
libxcb-glx0:i386{u} libxcb-present0{u} libxdamage1:i386{u} libxerces-c3.1{u}
libxine2{u} libxine2-bin{u} libxine2-doc{u} libxine2-ffmpeg{u} libxine2-misc-plugins{u}
libxine2-plugins{u} mysql-common{u} node-sprintf-js{u} nodejs{u} odbcinst{u}
odbcinst1debian2{u} proj-bin{u} proj-data{u} qdbus{u} qt-at-spi{u} qtchooser{u}
qtcore4-l10n{u} rtkit{u} socat{u}
The following packages are RECOMMENDED but will NOT be installed:
nvidia-settings-legacy-304xx
0 packages upgraded, 2 newly installed, 80 to remove and 0 not upgraded.
Need to get 4026 kB of archives. After unpacking 120 MB will be freed.
The following packages have unmet dependencies:
alsa-utils : Depends: libfftw3-single3 (>= 3.3.5) but it is not going to be installed
nvidia-legacy-304xx-driver : Depends: nvidia-legacy-304xx-driver-libs (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-driver-bin (= 304.137-5~deb9u1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia-legacy-304xx (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-vdpau-driver (= 304.137-5~deb9u1) but it is not going to be installed
Depends: nvidia-legacy-304xx-alternative (= 304.137-5~deb9u1) but it is not going to be installed
flightgear-phi : Depends: libjs-bootstrap but it is not going to be installed
Depends: libjs-jquery-flot but it is not going to be installed
Depends: libjs-jquery-ui (>= 1.11) but it is not going to be installed
Depends: libjs-jquery-ui-theme-smoothness but it is not going to be installed
Depends: libjs-leaflet but it is not going to be installed
Depends: node-sprintf-js but it is not going to be installed
Depends: libjs-requirejs but it is not going to be installed
Depends: libjs-requirejs-text but it is not going to be installed
nvidia-legacy-304xx-kernel-dkms : Depends: nvidia-legacy-304xx-kernel-support--v1 which is a virtual package, provided by:
- nvidia-legacy-304xx-kernel-support:i386 (304.137-5~bpo9+1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support (304.137-5~bpo9+1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support:i386 (304.137-5~deb9u1), but it is not going to be installed
- nvidia-legacy-304xx-kernel-support (304.137-5~deb9u1), but it is not going to be installed
The following actions will resolve these dependencies:
Install the following packages:
1) libgl1-nvidia-legacy-304xx-glx [304.137-5~deb9u1 (stable)]
2) libnvidia-legacy-304xx-cfg1 [304.137-5~deb9u1 (stable)]
3) libnvidia-legacy-304xx-glcore [304.137-5~deb9u1 (stable)]
4) libnvidia-legacy-304xx-ml1 [304.137-5~deb9u1 (stable)]
5) nvidia-legacy-304xx-alternative:i386 [304.137-5~deb9u1 (stable)]
6) nvidia-legacy-304xx-driver-bin [304.137-5~deb9u1 (stable)]
7) nvidia-legacy-304xx-driver-libs [304.137-5~deb9u1 (stable)]
8) nvidia-legacy-304xx-kernel-support [304.137-5~deb9u1 (stable)]
9) nvidia-legacy-304xx-vdpau-driver [304.137-5~deb9u1 (stable)]
10) nvidia-settings-legacy-304xx [304.134-1 (stable)]
11) pkgconf:i386 [0.9.12-6 (stable, testing)]
12) xserver-xorg-video-nvidia-legacy-304xx [304.137-5~deb9u1 (stable)]
Keep the following packages at their current version:
13) libfftw3-single3 [3.3.5-3 (now, stable, testing)]
14) libjs-bootstrap [3.3.7+dfsg-2 (now, stable, testing)]
15) libjs-jquery-flot [0.8.3+dfsg-1 (now, stable, testing)]
16) libjs-jquery-ui [1.12.1+dfsg-4 (now, stable, testing)]
17) libjs-jquery-ui-theme-smoothness [1.12.1+dfsg-1 (now, stable, testing)]
18) libjs-leaflet [0.7.7+20160312-1 (now, stable, testing)]
19) libjs-requirejs [2.3.2-1 (now, stable, testing)]
20) libjs-requirejs-text [2.0.12-1 (now, stable, testing)]
21) node-sprintf-js [1.0.3-2 (now, stable, testing)]
22) nodejs [4.8.2~dfsg-1 (now, stable, testing)]
Upgrade the following packages:
23) libuv1 [1.9.1-3 (now, stable, testing) -> 1.18.0-3~bpo9+1 (stable-backports)]
Leave the following dependencies unresolved:
24) libjs-jquery-flot recommends libjs-excanvas
25) nvidia-legacy-304xx-driver-libs recommends nvidia-legacy-304xx-driver-libs-i386
Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
history.log of command after which system got broken:
Start-Date: 2018-07-14 20:56:34
Commandline: apt -uV full-upgrade
Install: libgl1:amd64 (1.0.0+git20180308-2~bpo9+1, automatic), libgl1:i386 (1.0.0+git20180308-2~bpo9+1, automatic), libglx-nvidia0:amd64 (384.130-1, automatic), libglx-nvidia0:i386 (384.130-1, automatic), libglx0:amd64 (1.0.0+git20180308-2~bpo9+1, automatic), libglx0:i386 (1.0.0+git20180308-2~bpo9+1, automatic), mesa-va-drivers:i386 (13.0.6-1+b2, automatic), libglvnd0:amd64 (1.0.0+git20180308-2~bpo9+1, automatic), libglvnd0:i386 (1.0.0+git20180308-2~bpo9+1, automatic)
Upgrade: libgles-nvidia1:amd64 (375.82-1~deb9u1, 384.130-1), libgles-nvidia2:amd64 (375.82-1~deb9u1, 384.130-1), libnvidia-ml1:amd64 (375.82-1~deb9u1, 384.130-1), nvidia-vdpau-driver:amd64 (375.82-1~deb9u1, 384.130-1), libgles1-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), nvidia-kernel-dkms:amd64 (375.82-1~deb9u1, 384.130-1), libegl-nvidia0:amd64 (375.82-1~deb9u1, 384.130-1), libgles1-glvnd-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), libgl1-nvidia-glx:amd64 (375.82-1~deb9u1, 384.130-1), libgl1-nvidia-glx:i386 (375.82-1~deb9u1, 384.130-1), libnvidia-cfg1:amd64 (375.82-1~deb9u1, 384.130-1), nvidia-kernel-support:amd64 (375.82-1~deb9u1, 384.130-1), nvidia-driver-bin:amd64 (375.82-1~deb9u1, 384.130-1), libegl1-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), libgles2-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), xserver-xorg-video-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), libopengl0-glvnd-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), libnvidia-glcore:amd64 (375.82-1~deb9u1, 384.130-1), libnvidia-glcore:i386 (375.82-1~deb9u1, 384.130-1), libgles2-glvnd-nvidia:amd64 (375.82-1~deb9u1, 384.130-1), libnvidia-eglcore:amd64 (375.82-1~deb9u1, 384.130-1), nvidia-alternative:amd64 (375.82-1~deb9u1, 384.130-1)
Remove: vlc-plugin-video-output:amd64 (3.0.2-0+deb9u1), libgles2-mesa:amd64 (13.0.6-1+b2), ffmpeg:amd64 (7:3.2.10-1~deb9u1), libav-tools:amd64 (7:3.2.10-1~deb9u1), vdpau-va-driver:i386 (0.7.4-6), primus-libs:amd64 (0~20150328-4), primus-libs:i386 (0~20150328-4), nvidia-driver:amd64 (375.82-1~deb9u1), libopenscenegraph100v5:amd64 (3.2.3+dfsg1-2+b4), primus:amd64 (0~20150328-4), mplayer2:amd64 (3:0.23.0-2+deb9u2), flightgear:amd64 (1:2016.4.4+dfsg-3+deb9u1), mpv:amd64 (0.23.0-2+deb9u2), primus-libs-ia32:i386 (0~20150328-4), vlc:amd64 (3.0.2-0+deb9u1), libavdevice57:amd64 (7:3.2.10-1~deb9u1), nvidia-driver-libs:amd64 (375.82-1~deb9u1), libgl1-mesa-glx:amd64 (13.0.6-1+b2), libgl1-mesa-glx:i386 (13.0.6-1+b2), libgldispatch0-nvidia:amd64 (375.82-1~deb9u1)
End-Date: 2018-07-14 20:58:56
Sorry i cant be of anymore help as i am really not sure and dont want to help break your system. Maybe someone else has a better idea of a fix for this.
One last thing that might help is to check and see whats inside /etc/X11/xorg.conf.d/ if anything.
[ 57.658] (II) Loading sub module "glamoregl"
[ 57.658] (II) LoadModule: "glamoregl"
[ 57.658] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 57.663] (II) Module glamoregl: vendor="X.Org Foundation"
[ 57.663] compiled for 1.19.2, module version = 1.0.0
[ 57.663] ABI class: X.Org ANSI C Emulation, version 0.4
[ 57.663] (II) glamor: OpenGL accelerated X.org driver based.
[ 57.678] (II) glamor: EGL version 1.4 (DRI2):
[ 57.680] (II) modeset(0): glamor initialized
[ 57.688] (WW) glamor0: Failed to get GLSL version
[ 57.688] (EE) modeset(0): Failed to initialize glamor at ScreenInit() time.
Looks you are using the modesetting driver would that be correct?
If you have lshw what is the output of below command?
sudo lshw -c video
I'm sorry I don't remember whether I made any changes in modesetting
# lshw -c video
*-display
description: VGA compatible controller
product: 3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:31 memory:f6400000-f67fffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff