Discussion:
NetBSD on modern laptops
r***@NetBSD.org
2013-05-26 14:35:13 UTC
Permalink
Here's the dmesg output of booting NetBSD on some newer laptops:

http://pastebin.ca/2382629
http://pastebin.ca/2382631
http://pastebin.ca/2382632
Peter Bex
2013-05-26 14:50:02 UTC
Permalink
Post by r***@NetBSD.org
http://pastebin.ca/2382629
http://pastebin.ca/2382631
http://pastebin.ca/2382632
Here's another, for a Lenovo X230:
http://pastebin.ca/2382635

Everything works great except for the X driver which doesn't support
accelleration (3d, but also 2d) for the Intel Ivy Bridge video card.
I guess this requires additional kernel support.

Hybernation probably works in principle, but it refuses to hibernate
due to some drivers not supporting power management:

# sysctl -w hw.acpi.sleep.state=3
hw.acpi.sleep.state: 0 -> 3
# dmesg | tail -n 3
acpi0: entering state S3
Devices without power management support: puc0 com0 umodem0 umodem1 umodem2
acpi0: aborting suspend

I don't know what kind of devices these are, exactly (I'm pretty sure I
don't have three modems in it, and no old-fashioned COM port either), and
if it's possible to disable them somehow. I tried putting a line with
"userconf disable umodem*" in my /boot.cfg, but that did not disable the
umodem driver.

Overall I'm very happy with this laptop, and NetBSD runs great on it.
The above things are minor annoyances. The video card not being
completely supported is the biggest annoyance, but I can watch videos
fine with mplayer's "x11" video output driver, because the CPU is strong
enough to render on its own.

Cheers,
Peter
--
http://www.more-magic.net
Michael van Elst
2013-05-26 15:59:28 UTC
Permalink
Post by Peter Bex
http://pastebin.ca/2382635
Devices without power management support: puc0 com0 umodem0 umodem1 umodem2
acpi0: aborting suspend
I don't know what kind of devices these are, exactly (I'm pretty sure I
don't have three modems in it, and no old-fashioned COM port either),
The 3 modems report as Lenovo H5321, that's a broadband interface (UMTS
or similar). Your laptop probably has a slot for a SIM card.

puc0/com0 is a serial port in the Intel chipset but the signals are probably
only routed to an original Lenovo docking station.


Greetings,
Peter Bex
2013-05-26 17:02:46 UTC
Permalink
Post by Michael van Elst
Post by Peter Bex
I don't know what kind of devices these are, exactly (I'm pretty sure I
don't have three modems in it, and no old-fashioned COM port either),
The 3 modems report as Lenovo H5321, that's a broadband interface (UMTS
or similar). Your laptop probably has a slot for a SIM card.
It does on the inside, I'm told ;)
Post by Michael van Elst
puc0/com0 is a serial port in the Intel chipset but the signals are probably
only routed to an original Lenovo docking station.
Thanks for the hints! Is there any way to disable these devices (besides
compiling a custom kernel of course), since I'm not currently using them?
It would be great to use hibernation on this laptop.

Cheers,
Peter
--
http://www.more-magic.net
Michael van Elst
2013-05-26 23:03:26 UTC
Permalink
Post by Peter Bex
Post by Michael van Elst
Post by Peter Bex
I don't know what kind of devices these are, exactly (I'm pretty sure I
don't have three modems in it, and no old-fashioned COM port either),
The 3 modems report as Lenovo H5321, that's a broadband interface (UMTS
or similar). Your laptop probably has a slot for a SIM card.
It does on the inside, I'm told ;)
Post by Michael van Elst
puc0/com0 is a serial port in the Intel chipset but the signals are probably
only routed to an original Lenovo docking station.
Thanks for the hints! Is there any way to disable these devices (besides
compiling a custom kernel of course), since I'm not currently using them?
It would be great to use hibernation on this laptop.
USB is a bit tricky unless you want to disable all of USB. The Lenovo
notebooks I know can disable the broadband interfaces via ACPI, but
to control this from NetBSD you need the thinkpad acpi driver enabled
and the driver might not work because of the different methods used
by the various Lenovo notebooks. There could be a BIOS option too.

The puc driver can probably be disabled with userconf.
David Young
2013-05-27 00:04:51 UTC
Permalink
Post by Peter Bex
Post by Michael van Elst
Post by Peter Bex
I don't know what kind of devices these are, exactly (I'm pretty sure I
don't have three modems in it, and no old-fashioned COM port either),
The 3 modems report as Lenovo H5321, that's a broadband interface (UMTS
or similar). Your laptop probably has a slot for a SIM card.
It does on the inside, I'm told ;)
Post by Michael van Elst
puc0/com0 is a serial port in the Intel chipset but the signals are probably
only routed to an original Lenovo docking station.
Thanks for the hints! Is there any way to disable these devices (besides
compiling a custom kernel of course), since I'm not currently using them?
It would be great to use hibernation on this laptop.
See if you can detach any of the devices after boot. Try, for example,
'drvctl -d puc0'.

Dave
--
David Young
***@pobox.com Urbana, IL (217) 721-9981
Peter Bex
2013-05-27 17:59:54 UTC
Permalink
Post by David Young
See if you can detach any of the devices after boot. Try, for example,
'drvctl -d puc0'.
This worked for umodem, but not for puc0 or com2. I suppose puc0 can't
be disabled because com2 is a child of it.
Post by David Young
Post by Peter Bex
Thanks for the hints! Is there any way to disable these devices (besides
compiling a custom kernel of course), since I'm not currently using them?
It would be great to use hibernation on this laptop.
USB is a bit tricky unless you want to disable all of USB. The Lenovo
notebooks I know can disable the broadband interfaces via ACPI, but
to control this from NetBSD you need the thinkpad acpi driver enabled
and the driver might not work because of the different methods used
by the various Lenovo notebooks. There could be a BIOS option too.
I was unable to find one.
Post by David Young
The puc driver can probably be disabled with userconf.
I tried to disable umodem, puc and com, but they were all still detected.

Cheers,
Peter
--
http://www.more-magic.net
Continue reading on narkive:
Loading...