Re: NetBSD on modern laptops

2013-05-27 Thread Peter Bex
On Sun, May 26, 2013 at 07:04:51PM -0500, David Young wrote:
 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.

On Sun, May 26, 2013 at 11:03:26PM +, Michael van Elst wrote:
 peter@xs4all.nl (Peter Bex) writes:
 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.

 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


Re: NetBSD on modern laptops

2013-05-26 Thread Peter Bex
On Sun, May 26, 2013 at 10:35:13AM -0400, rod...@netbsd.org wrote:
 Here's the dmesg output of booting NetBSD on some newer laptops:
 
 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


Re: NetBSD on modern laptops

2013-05-26 Thread Michael van Elst
peter@xs4all.nl (Peter Bex) writes:

On Sun, May 26, 2013 at 03:59:28PM +, Michael van Elst wrote:
 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 ;)

 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.



Re: NetBSD on modern laptops

2013-05-26 Thread David Young
On Sun, May 26, 2013 at 07:02:46PM +0200, Peter Bex wrote:
 On Sun, May 26, 2013 at 03:59:28PM +, Michael van Elst wrote:
  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 ;)
 
  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
dyo...@pobox.comUrbana, IL(217) 721-9981