Archive for the 'Ubuntu' Category

Less Linux Laptop Woes.

If the WordPress stats of this blog are even a tiny bit correct, a considerable portion of my few visitors stumble upon this site after googling (or something similar) for ‘MSI PR200′ and ‘Linux’.

Now I don’t really expect all of these visitors to find what they are looking for here, but for some strange reason I do feel some sort of an obligation to at least try and post some kind of update on the issues I have been dealing with.

So, let’s recap first. What were those issues again?
Well, there was a small quirk with alsa not muting the speakers when on headphones. The power management was all screwed up, causing the battery state to be wrong about 90 percent of the time. And finally, both suspend (S3) and hibernate (S4) did not work.

The alsa issue was easily fixed by adding a certain line to the /etc/modprobe file. At least that’s what I think was needed, unless I’ve misinterpreted what’s in the System76 driver.
On kernels up to 2.6.22, the battery issue could be fixed by using the ec_intr=0 boot option. As of 2.6.23 or 2.6.24 however, that option was no longer available, so we were back to were we started. (Which was also the reason why I stuck with Ubuntu 7.10 for a while.)
That same kernel bump also caused S3 and S4 suspend to break, which I had gotten to work thanks to the System76 driver on Ubuntu 7.10 (and some mysterious custom DSDT.aml file).

Continue reading ‘Less Linux Laptop Woes.’

Dualbooting, a waste of disc space.

Well, in my case, it was.

I had Ubuntu Hardy and Arch Linux on my laptop for a few weeks, but due to the powermanagement problems on 2.6.24 kernels (and above), I hardly ever booted into the Arch install. I know Ubuntu 8.04 also has a 2.6.24 kernel, but I was using a workaround on it that partially solved the battery issue with my laptop (thanks to pavel_987 and badbull).

Still, it lacked the support for suspend and hibernation, and the workaround was causing some strange battery errors, when unplugging from AC power.

The brave/smart/best/ideal thing to do was to actively try and work on a solution myself. But alas, I took the lazy route and did a clean install of Ubuntu 7.10, in which hibernation at least works and the battery state is read correctly.

Meanwhile, the good people of System76 are still working on a solution for both the battery and the suspend/hibernate issues. It’s proven to be a tough nut to crack. But since I’m not really one of their customers (they don’t ship outside the U.S. and Canada), I’m not really in a position to complain about it.

Again, I promise to keep following up on this issues and I’ll do my best to post updates on my blog as soon as possible.

Format C:

Despite the slight issues I have experienced with any Linux distro on my laptop, I decided it was about time to finally wave goodbye to Windows Vista. Even with the acpi problems, I still preferred booting into Linux over Vista.
Plus it takes up a huge amount of hard disc space. Seriously, 20 GB for an OS install, is that really necessary?

So it’s gone. Free again at last! Free at last!

I’ve installed Ubuntu 8.04 x86_64 instead, mainly to test and monitor the patches and fixes System76 will release to resolve the battery and suspend issues on the daru2 models.
I’m probably not Ubuntu’s biggest fan, as I think it’s way too bloated out-of-the-box and because it’s tendency to avoid the command line almost at all cost annoys the hell out of me. But I have to admit that, if you have fast enough hardware, it is a great distribution for any Linux newcomer.

Nevertheless, I want to switch back to Arch as fast as possible. Therefore, I’m going to dualboot it with Ubuntu for as long as I’m having these issues. This will give me the chance to thoroughly test the patches/fixes/workarounds (whatever you want to call it), and at the same time I’ll be able to try and port them to my Arch install.

The laptop has a 250 GB hard drive, which is roughly 235 GB in reality. So what I did was create a 200 GB logical partition at the end of the drive for all my important data (music, school stuff, films, and so on). Then I added a 4.1 GB Swap partition. And finally I evenly split the rest of the free space between Ubuntu and Arch, so about 14 GB each.
Unfortunately I still lose 1000 MB on that silly Vista rescue partition, but I don’t want to remove this because I’m afraid I’d lose my warranty (or they’d at least be a bit upset about it) if I ever have to send it back for repairs.

I’ve already installed the full bloat of an Ubuntu Gnome desktop, so now I’m about to add a lightweight Arch + Openbox setup to it.

The System76 driver … again.

Again I know, but it’s just one of the most pressing linux-related issues I’m dealing with at the moment. And it probably won’t be the last blog post about it.

Anyway..

I did some further testing with the driver on Ubuntu Gutsy, followed up on the important topics on the Ubuntu Forums, and I learned a few more things:

As Jose commented correctly, suspend works, but only to a certain degree. I had set up the laptop to suspend automatically when the laptop lid was closed, and it did, but sometimes it wouldn’t wake up afterwards. Other times it would wake up, but when I wanted to shutdown later on, it hung. Forcing me to shut it down “the windows way” (keeping the power button pressed for ten seconds until it died).

The sound is indeed a bit flakey, but once you know how to handle it, the workaround is simple. When using a headphone jack, you basically have to make sure the front speakers are muted and the headphone switch is ticked on in the Gnome Volume Controls. This isn’t really a big problem as long as you use Gnome to control the volume, or something similar. I don’t know how I’m going to handle it when I set up Openbox, but if necessary I’ll just load up a small part of Gnome to get it working.

So apart from that, on Gutsy, the rest worked pretty well.

Alas, that is not all…

Continue reading ‘The System76 driver … again.’

The System76 driver seems to work.

Well, it does what it said it would.

I installed Ubuntu 7.10 (Gutsy) x86_64 last night. After updating, I immediately installed the System76 driver and rebooted.

To summarize:
- Suspend works fine.
- Hibernate works fine.
- The battery state is indicated correctly.
- Alsa is b0rked.

I’m not really sure if alsa was already messed up when I was using Arch or even before applying the driver on Ubuntu. I was too distracted by the other issues to notice this. But now it’s definitely not working like it should.
Normal sound playback is working fine, but when you plug in a headphone jack, things get freaky. The front speakers continue to play sound, and through the headphones I just hear a lot of noise.

Continue reading ‘The System76 driver seems to work.’

I might go back to Ubuntu.

Yes you read it right, not entirely out of free will though.

In short, my laptop has some serious power management issues; If I understood correctly, the kernel continually receives interrupts from the battery, which somehow confuses it. This results in the OS never really knowing the state of the battery, or whether or not it’s running on AC power or on battery.
Sometimes the info displayed in /proc/acpi/battery/BAT1/state is correct for like 5 seconds, but most of the time it isn’t. Causing warnings of low battery, dimming and undimming of the screen, etcetera. All very annoying things.

Additionally, suspend and hibernate don’t work either. And it being a small laptop, intented for dragging along almost everywhere I go, it’s kind of essential that I manage to get that working properly.

So why would Ubuntu provide a solution that isn’t possible under Arch Linux ?

Continue reading ‘I might go back to Ubuntu.’


~/Screenshots/Recent/

 

~/Copyleft/

The content of this blog is licensed under the GNU Free Documentation License. More information, and a copy of the license, can be found on the About page.

~/Contact/

freduardo[at]gmail[dot]com

~/Archives/