So after doing some searching online, I came up blank on anyone having done this so I'm posting this here in case anyone else is interested. This is purely informational for those wanting to get Linux running on this and possibly similar platforms. It's specific to Sager/Clevo hence why I posted here, but if the mods feel it's more appropriate in the Linux forum, please feel free to move it.
I'll skip all the normal BS about choosing a distro, creating a USB stick and whatnot. And it's important to note that I'm dual-booting this machine as well, so I need to preserve my Windows install and put Linux somewhere else (in this case, it's the other M.2 slot with a 256GB M.2 drive). The main thing here is that when you boot from your USB stick on this machine, you end up at a black screen which is possibly one of the most infuriating situations to be in. Chances are you will, like I did, try the "compatibility mode" option from the boot menu. Which doesn't have a black screen but freezing during bootup with the last message in the log being this:
fb: conflicting fb hw usage nouveaufb vs EFI VGA - removing generic driver
That's helpful, isn't it? The simple explanation for this is that for generic configurations, the kernel can't figure out which one to use. Nouveau is the open-source nVidia driver and the EFI VGA driver is the one that is invoked at startup so you can get console output before the kernel and OS loads. Without making some changes here, you're pretty much stuck.
The first thing you'll want to do is boot back into Windows or stick the USB key in another Windows/Mac/Linux machine where you can get at the contents of the key. It should be formatted in FAT32 so everything in the world can read it (generally). From the root directory of the, open /boot/grub and use a simple text editor to edit grub.cfg. The simple fix is to edit this line:
linux /casper/vmlinuz file=/cdrom/preseed/linuxmint.seed boot=casper iso-scan/filename=${iso_path} quiet splash --
and add the word "nomodeset" right in front of the word "quiet" so it looks like this:
linux /casper/vmlinuz file=/cdrom/preseed/linuxmint.seed boot=casper iso-scan/filename=${iso_path} nomodeset quiet splash --
There's a couple of configurations in that file that might have a similar line. Use the first one. It'll just save you hassles later. What this does it to tell the kernel to do is not to use its own modesetting code but rely on the UMD (user mode driver) to do it for us later. If you have no idea what I'm talking about, just make the above changes, nod and smile and return to ignorant bliss. Be careful when editing on Windows too, since if you change the line ending type it can cause problems (if you want an explanation, ask. Most people don't rightly care).
Now, reboot and press F2 to get into BIOS. Yes there's other ways to bring up the menu, but I don't remember them offhand and this one is guaranteed to work. Go to the "exit" menu and select the USB key from the boot menu. When GRUB loads, select the first option (which should have been the one you edited previously) and it should start normally, ending with you sitting at the Linux desktop running a horribly slow, software renderer. But you're at the desktop and can now install Linux Mint on your system. Make sure you note the drive and partition number of your root directory because it will vitally important to have further down.
Now, don't get all excited because you're not done yet. You need to install the nVidia drivers so you can actually use this beast. If you restart without editing the command line, you'll be back at a black screen for the exact same reason as when you booted from the USB stick. So how do you fix this? By following a similar but more involved process of editing the installed grub.cfg file.
So open a terminal window now and type "sudo su". It may ask for a password, which is the same one you entered during installation. Hopefully you remember where you installed Linux, because it's important now. You need to mount the root directory of your installation under /mnt with the following command:
mount /dev/sdAX -t ext4 /mnt
DO NOT type sdAX! That means to use the drive letter and partition number for your installation. For example, my installation was done on 'sdc' and the root is the first partition so mine is /dev/sdc1. Now cd into /mnt/boot/grub. There should be a file there called 'grub.cfg'. Use nano or vi to edit that file. I use nano. Don't get me started on the vi-vs-all-other-editors debate. Anyways, now things get interesting. You need to edit the configuration in the same manner that you did before. Only this grub.cfg is a hell of a lot more complicated than last time.
This a sample that I pulled off the web, so it will likely not match your configuration:
menuentry "Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda8) (on /dev/sda8)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 8d535868-a72d-4b53-93da-9e83e1d8b7f3
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8d535868-a72d-4b53-93da-9e83e1d8b7f3 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
Find the first one of those entries in the file. It should be titled similarly to one above. On the line starting with 'linux' you can see the 'ro quiet splash vt_handoff=7' there. You want to put the 'nomodeset' word on that line too in front of the 'quiet'. Save the file, exit the terminal and reboot. When you get to the grub menu, select the default option. If it results in a black screen, chances are you edited the wrong configuration entry.
You'll want to boot of your live key, remount the root file system until /mnt and check to see that everything is correct. If you really screw things up, you can always start back at the beginning and try it again.
Now, if everything worked, you should be at your login prompt for your fresh new installation of Linux. Yay! But you're still running the software renderer which is slow and horrible. Boo! Next post is how to install the nVidia drivers so your system will not suck.
*NOTE: I'm doing this from memory as I just completed this operation an hour ago. So if I missed something, let me know and I'll update the post.
-CA
-
Commander Angry Notebook Enthusiast
-
Commander Angry Notebook Enthusiast
Now for the nVidida drivers....
First, while booted into your new Linux system, go to nvidia.com and download the driver package. It's pretty straight forward and shouldn't take too long. I think the package is like ~70MB in size. So here's what we're going to do:
1) Kill the display manager so we can install new drivers
2) Install the new drivers as root
3) Relaunch the display manager to use our new drivers
So how do we do that? Easy. Just like this:
1) Open a console window on your Linux Mint system.
2) Type "sudo su" and enter your password. You should now be root.
3) Type "service mdm stop". Your fancy desktop should go away and you should be sitting at a console login prompt.
4) Login as root with your normal password.
5) Type "cp /home/<your_user_name/Downloads/<name of the nvidia driver archive you downloaded> ." Don't forget the '.' there or it won't copy.
6) Type "./<name of nvdia archive>". If that doesn't work, type "chmod 755 ./<name of nvidia archive>" and then type the first command again. It may complain about the pre-install script failing. That's fine, continue anyways.
7) Follow the instructions, accept the licensing agreement and say "yes" when it asks to build the module automagically.
8) When the installation completes, just type "service mdm start" and you'll back back in business at your login prompt. Enjoy.
That should do it. As with before, I'm doing this from memory and may have missed something. If so, just let me know and I'll update it accordingly. If I have the time and desire, I might do a TL;DR version of this too. Hope someone finds this useful.
-CASSScalatius likes this. -
Thanks.
I tried Ubuntu but kept getting unrecognized controller error preventing me from installing. -
Commander Angry Notebook Enthusiast
Sure thing. Which version of Ubuntu and do you have any more specifics on the error message?
I suspect a good portion of the common distros will have a similar issue. What surprised me is that even the "compatibility" mode doesn't stop KMS from getting in the way. Once the install is done though, you might be able to get away with using the "recovery" option from the GRUB menu. Some distros have nomodeset as an option for that one. I didn't check to see if Mint does though. I might do that next time I boot into Linux.
-CA -
Its the 14 LT version. 64 bit. mmc0 unknown controller
-
That is seriously insane... My P377SM-A is straight up plug and play other than the video. That alone is enough of a headache though.
TomJGX likes this. -
Thank you very much Commander Angry. Your posting actually provided the last little bit of courage for me to order my Eurocom P7 Pro from Eurocom which is a Clevo P770ZM. I have read in some posting on other forums that there are those who tried to install Linux Mint 17.x onto a P770ZM with no luck and came down to settling for running a Virtual Machine installation of Mint within Windows.
Your Sager NP9752/Clevo P750ZM is the 15.6" version of P770ZM, a 17.3". My P7 Pro (P770ZM) arrived last Friday. Following your directions to the dot made the installation of Mint 17.2 Rafaela totally painless.
The NVidia driver was also easily installed.
Now with the OS and GPU driver installed, the computer is up and running. However, a few other items on the laptop also need further attention.
- screen brightness
- sound configuration
- backlit keyboard
- fingerprint reader
The screen brightness is not adjustable - either through keyboard via Fn+F8 and Fn+F9 or by the slider within the battery status indicator. This brightness issue is widely discussed in many forums on Clevo's and other machines but with no definitive solution I found that work with the P770ZM. I tried majority of the suggestions and have stable results only with xbacklight through CLI. Have you worked out some breakthrough with this issue?
The standard sound is working. Are there any other drivers aside from ALSA for which will enhance the sound setup for the P7x0ZM? Windows has the Sound Blaster X-Fi MB3 software. Any options with LM17.x?
The backlit keyboard is constantly at blue and comes on at startup. None of the keyboard Fn+key's does anything to the settings. Search from various forums has not resulted with much usable information. Have you got a good handle on this stumbler?
The fingerprint reader, LighTuning 1c7a:0603. Are there any utility that will support this with LM17.x?Commander Angry likes this. -
Commander Angry Notebook Enthusiast
Certainly. Glad this was of use to someone.
With respect to your questions though, there really aren't a lot of options or answers. I did some research on these and came up with the following:
1) Screen Brightness:
The only option I found here is gbacklight. It's a GTK front end for xbacklight. Not a great solution, but it does eliminate the issue of having to go to the command line to change the screen brightness. I haven't had a chance to try this one out myself yet though, so if you decide to try it out, please let me know how it goes. If I have some time in the near future, I'll investigate this one as well and report back here.
2) Sound driver
The on-board audio chipset is one of the RealTek parts, but I couldn't find much information on the exact model/part installed. RealTek does produce Linux drivers for some of their audio components so it's possible that they have drivers that will work. However, on a cursory search of their website I found that their drivers are for the 3.0 kernel and are over a year old. They also don't release the source code (not a surprise really) so you can't build and configure it for your system specifically. All in all, it might be worth testing this out but it's definitely in the realm of "proceed with caution". Personally, this is one where the benefits really don't outweigh the risks.
3) Keyboard brightness/backlight
This one is specific to Clevo/Sager I think. There's not much information I could find on it, so my guess is that it's something you'd have to take up with Clevo directly. While it might be worth opening a dialog with their support people, you probably don't want to get your hopes up. The likelihood that they'll do a Linux port is low and they're certainly not going to release the source code. They might provide data sheets or at least tell you who the vendor/mfg is for the keyboard controller and its associated HW. That would be useful information to have since from there, a community project could get started to get that functionality for Linux. Without that info it becomes a brute-force reverse engineering effort. Not for the faint of heart, to be sure.
4) Fingerprint reader
I *think* this one is the ES603 part from Egistec. If that's the case, all the info I found points to the driver being integrated into libfprint now. So that's where I'd go look first. I don't know what the package will be on Mint but it should be relatively easy to find. You'll want to subscribe to the fprint mailing list ( [email protected]) and report problems or ask questions there. They may also have an IRC channel where you can track down users and devs and talk to them.
Hope that helps. If you have any other questions or comments, please don't hesitate to ask.
-CA
-
Commander Angry Notebook Enthusiast
-CA -
Commander Angry Notebook Enthusiast
-CA -
I mean nVidia STILL refuses to support SLI on mobile cards in Linux... And on desktops... Its AFR which doesn't work with 99% of games... /soapboxMr. Fox and Commander Angry like this. -
Commander Angry Notebook Enthusiast
No arguments from me on any of those points. Linux has come a LONG way since I got started with it in the early 90s (Slackware was the first distro I installed) but it's nowhere near where it could or should be. The major distros have done a lot of great things for it for sure, but that hasn't stopped it from continuing to splinter off and fragment into little niches all over hell and creation. Like yourself, I got tired of having to update and/or install every package under the sun just to satisfy dependencies, or download source packages and compile them because the distro version was a couple revisions out of date.
That's odd that the mobile driver doesn't support SLI at all. Have they talked about why they don't support it? I'd be curious to know what their position is on that one. I've never been a fan of alternate frame rendering though. Split frame was always the way to go, even though it require more interaction between the two GPUs. There's just too many things that can go wrong when operating in AFR mode that makes having two GPUs almost useless.
-CAEthrem likes this. -
Remember the promises of Caldera? Or WinLinux?
Anyway on SLI... Ask nVidia...
ftp://download.nvidia.com/XFree86/Linux-x86/177.70/README/chapter-25.html
Significantly newer
ftp://download.nvidia.com/XFree86/Linux-x86/334.21/README/sli.html
Nvidia blocks mobile GPUs and I haven't found a way around it... But SFR is only supported by things really old... Doom? Quake?
My favorite distribution was always SuSE... Just because I loved the lizard... I remember having to set up VGA to even work right and waiting wait seemed like hours with hashes running across your screen package by package. Personally I can't do anything but apt. All other package managers take forever... And are just a mess... Its so easy to break Red Hat thinking the system froze... And restarting it... Or any other RPM installer... Fedora is just... Garbage in that factor... I never liked Slackware, Arch, or Gentoo because while I liked what the last two represented - learning Linux from the core - the ease of destruction was ridiculous... So I went Ubuntu... Then came Unity and closed source drivers... As someone that owned two restricted drivers, one that was required to get me online, I was less than pleased... So then Mint came. Seemed like a godsend... The cinnamon fork pulled everything I loved about gnome without making it annoy me like Unity... And flash and everything in the box... But it doesn't support 980M... So add the edgers PPA right? No... You have to block the "open source" what is it, nouveau? To even get it to boot the live USB with nomodeset. How many average people will do that? This is the problem we have. We need a standard. 98% of PC users don't even know about safe mode and we want them to enter command line? What is this, Windows 3.1?Commander Angry likes this. -
Commander Angry Notebook Enthusiast
I dug up that first document you listed there in a quick search a while ago. Some interesting information, but it's dated. I'll look over that other one when I have some time.
It doesn't make much sense to me why they block the mobile GPUs. Purposefully locking out functionality just seems counterproductive. SFR has always been the operating mode for SLI when I've had to deal with it (but it's been a while since I had an SLI setup. Like almost 10 years now). In theory, it *should* be completely transparent to any application using it. The driver partitions the incoming command streams, determines which GPU gets which workload, and then each one writes out its data into the scanout buffer(s). But AFR seems to be predicated on the application itself being built such that it can render multiple frames, so that would cut down the usable audience there by quite a bit.
Heh SuSE was always a solid distro, although not necessarily my favorite. I was a big Fedora fan for a long time, up until they went to Gnome 3. But yeah, it always had package problems. Always. Between that and pressure from the people at work, I ended up switching over to Ubuntu as my primary Linux platform. And because of total disdain for Unity, Kubuntu was my flavor of choice there. But once I was introduced to Cinnamon, that was it. As you said, everything I wanted and none of the crap that pissed me off. I've used it ever since.
Yeah it's the nouveau driver that you need to blacklist. You're absolutely correct though - 98% of people wouldn't even consider doing something like this just to get the OS installed! I think a lot of it comes down to needing a more effective method for discovering/probing the hardware though. In particular, it's time to start drawing lines in the sand when it comes to backward compatibility. I don't think Linux needs to abandon old hardware, but it needs to partition things out better such that supporting old hardware doesn't hamstring new hardware.
-CA -
Hi CA,
Heavy work load held me back somewhat for the past 2 months. Here is a quick update:
Brightness: I am at a pause for the backlight issue for the time being. Tucking xbacklight, setting at 50%, in the startup helped reduce eyestrain somewhat. Trying gbacklight will happen shortly. While installing another computer with Mint (see last paragraph), I noticed that brightness was controllable with the USB Live session before the actual installation. However, once restarted, brightness was no longer controllable.
Sound: It is playing enough sound so I am not in any hurry to investigate more options yet.
Fingerprint reader: There is not much info to go any further yet.
Backlit Keyboard: I read some post online with a reverse-engineered driver "clevo-wmi" for the P150EM/P170EM at askubuntu and here in notebookreview. It turns out that this driver works to some degree with some paramenters responding with reverse setting (e.g. brightness is brightest at 0). There is some Windows based low level info I found specific to the P7x0ZM. Given enough time and luck, it might be possible to sort out the differences and change the registers from "clevo-wmi" to suit the P7x0ZM. No high hopes though. I haven't written a line of C/C++ since the late 1980's, so I won't hold my breath for that either. I managed to use "clevo-wmi" to shut off the LED of the keyboard. With the keyboard LED off, the heat decreased a significant amount making it more comfortable typing longer.
On the side line, a friend wanted to try Mint on his MSI GP60-2QF Leopard Pro. It also has both integrated Intel GPU and the GTX 950M. Trying your approach with "nomodeset", Mint 17.2 Cinnamon loaded fine. When we attempted the Nvidia driver per your procedures, cinnamon crashed and loaded in fall back mode. Searching on the net, we found some info regarding some dual GPU (Intel/Nvidia) notebook might not have the same characteristics of the P7x0ZM's. According to a post on Linux Mint's forum, making use of Bumblebee is the only available option because whenever any Nvidia driver loads, the GLX renderer disappears. Cinnamon crashes and loads in fall back mode. Do you have some insights for this scenario? Is there any simpler way other than Bumblebee?
Thank you in advance.
-
Does anyone have more advice about the mmc0 unknown controller version error? I get this fairly early in the install process.
Will going into the compatibility mode avoid that?
Thanks. -
Also, would installing Linux in a virtual machine instead avoid some of these compatibility issues? Sorry for the noobish questions, but I'd like to give Linux a try and I'd like to avoid guessing at which parts of the image file to edit.
-
-
Commander Angry Notebook Enthusiast
No worries, man - similar situation here.
The nVidia drivers work on the P7x0zm series because those machines don't have Optimus. It's just a straight install and there's no contention with another GPU. It's just a matter of installing the proprietary binaries and it's done.
From the research I did on this issue, your options are limited. You can try the open-source Nouveau driver (which uses PRIME to handle Optimus), but that comes with its own set of issues. If the BIOS has options for it, you can disable one GPU or the other, depending on if you want high performance graphics (nVidia) or power savings (Intel). Personally I'd run the nVidia GPU, but that's just how I roll. There some info on these on the Arch Linux wiki here - https://wiki.archlinux.org/index.php/NVIDIA_Optimus.
One other thing you might want to try is blacklisting the i915 driver on the kernel command line then forcing it to start with the Nouveau driver to drive the graphics with the nVidia part. I don't have an Optimus-enabled machine to test that out on though, so I can't really give you the play-by-play on it. There's a couple ways to try this out, I'd recommend putting it in GRUB so you don't have to edit the command line every time. The syntax for it has changed some, but I think it's similar to this:
i915.blacklist=1
Note that this won't work if the i915 driver is built into the kernel - I don't recall offhand if that's the case with the stock kernels. I'll keep looking into this though and see if there's any other possible solutions.
-CA
-
Commander Angry Notebook Enthusiast
blacklist sdhci-pci
blacklist sdhci
blacklist mmc_core
Note that this also renders your built-in card reader unusable. The above is not the correct syntax for the command line either - it's probably something like "sdhci-pci.blacklist=1".
-CA -
Commander Angry Notebook Enthusiast
-CA -
Are there any versions of Linux that install without issue on this notebook that anyone knows of? I am getting this specifically to avoid optimus and I was hoping that would be the end of making the setup complicated.
Eurocom P5 Pro seems to have an "SE" edition that lists Linux as an OS that can be installed, but it's still not in the drop down:
http://www.eurocom.com/ec/configure(1,270,0)ec
However, I don't see a difference between that and the regular P5 pro.
Anyway, I am rather surprised at the lack of info on anyone trying to install Linux on it. Thanks Commander Angry. I'll follow this thread hopefully. And I guess when the x4 comes out, I will delay until there is some Linux info. -
Commander Angry Notebook Enthusiast
As far as I know, any current Linux distro is going to have the same issues. I didn't really delve into the reasons why, but I suspect it's because the default kernel versions they ship with the main distros aren't new enough to support the hardware. You could probably to get Arch to install directly, but that's an adventure unto itself.
Most likely if a manufacturer has a Linux option, they have a Linux image they've created specifically for the platform, so that would be the ideal scenario in my book. Plus, if they set it up correctly, it gives you the ability to wipe and restore from the image in case anything goes wrong. You'd have to contact Eurocom to see if there are actually any HW differences or if it's just an option for a specific SKU on their line.
To your last point, I think most of the people purchasing these machines are focusing on gaming, so Linux isn't even a consideration for them. The retailers I talked to seemed to indicate that was the case as well. The lack of support from the ODM/OEM side also would point to Linux not being much of a market for these systems, otherwise I would expect to see more direct support from them. There are indications that this might be changing, but I wouldn't hold my breath waiting for it to happen.
If you DO get one of these systems though, I'd recommend going with the Intel wireless card if you're going to run Linux directly on the HW. It will save you pain and anguish in the long run.
-CA
i_pk_pjers_i likes this. -
Mythlogic offers Ubuntu. You could contact them too.
-
Nvidia linux driver already has basic optimus support in the form where,its kind of a software version of disabling intel in the bios.That is, it keeps the Nvidia on at all times and renders all graphics through it, or traditional disable Nnvidia and keep intel only enabled.On ubuntu it should be as simple as (sudo apt-get install nvidia-prime) and for manual installation on less friendly distros here a good read ftp://download.nvidia.com/XFree86/Linux-x86/358.09/README/randr14.html
Linux Mint 17.1 installed on Sager NP9752/Clevo P750ZM
Discussion in 'Sager and Clevo' started by Commander Angry, Apr 25, 2015.