Re: FreeBSD on ThinkPad W530

2013-08-19 Thread Ian Smith
On Wed, 14 Aug 2013 15:40:58 +0200, vermaden wrote:
  Hi and thanks for reply ;)
  
   Yay another FreeBSD laptop user!
  
  I use FreeBSD for dekstop/workstation for I do not remember how long:
  http://vermaden.deviantart.com/art/CorporateBSD-FreeBSD-at-Work-190680188
  
   Please do this:
   * join the freebsd-mobile list;* create PRs for each of your problems with 
   -10 above!;
  
  Here are created PRs:
  
  http://www.freebsd.org/cgi/query-pr.cgi?pr=181281
  stack trace after successfull 'umount /mnt' (SDHC card mounted as msdosfs)
  
  http://www.freebsd.org/cgi/query-pr.cgi?pr=181282
  3h of work on battery on FreeBSD while 10h on Windows

Hi; I'm only going to address this one, so chopping mercilessly ..

  http://www.freebsd.org/cgi/query-pr.cgi?pr=181283
  acpi_ibm module is useless on ThinkPad W530
  
  http://www.freebsd.org/cgi/query-pr.cgi?pr=181285
  x11/xorg does not start if Nvidia Optimus is enabled on
  
   * the power utilisation thing is going to be fun to track down - what kind 
   of
   CPU is in there? Is it a recent Intel? I'm playing around with their tools 
   at the
   moment; maybe we can look at the power the CPU is consuming and then
   add on the power from each of the other parts in your laptop until we
   figure out what's drawing said power

Can't fault the comprensiveness of your PR 181282 :)  I did notice:

dev.cpu.0.cx_lowest: C1

As a starting point, try following mav@'s excellent Tuning Power guide:
https://wiki.freebsd.org/TuningPowerConsumption

I don't know what the i7 or your BIOS does about C-states, but using C2 
and especially if you can get to C3 or equivalent could give a big win; 
with other tunings Alexander managed to double battery life (on a C2D)

You said powerd was 'working' but without indication of effectiveness, 
such as what CPU speeds correspond to idle/light load/full load etc?
You may want to try tuning its default modes/idle/busy settings, and 
measure real power used at different freqs.

I suggest trying the advice there to disable p4tcc and acpi_throttle, 
reducing number of P-states considerably.  Then 'service powerd stop', 
run powerd -v in a console and measure power consumption at various 
loads and CPU frequencies.  If you have no wattmeter, acpiconf -i0 may 
serve as a guide (though you do have to wait a while for changes to be 
reflected); for such monitoring (albeit with working acpi_ibm) I use:

smithi on t23% cat ~/bin/t23stat
#!/bin/sh
echo -n `date` 
sysctl dev.cpu.0.freq dev.cpu.0.cx_usage
sysctl dev.acpi_ibm | egrep 'fan_|thermal'
sysctl hw.acpi.thermal.tz0.temperature
acpiconf -i0 | egrep 'State|Remain|Present|Volt'

smithi on t23% t23stat
Mon Aug 19 22:09:15 EST 2013 dev.cpu.0.freq: 733
dev.cpu.0.cx_usage: 0.05% 99.94% 0.00% last 529us
dev.acpi_ibm.0.fan_speed: 2254
dev.acpi_ibm.0.fan_level: 1
dev.acpi_ibm.0.thermal: 47 46 42 -1 -1 -1 29 -1
hw.acpi.thermal.tz0.temperature: 47.0C
State:  discharging
Remaining capacity: 95%
Remaining time: 2:36
Present rate:   17313 mW
Present voltage:12236 mV

Cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD on ThinkPad W530

2013-08-14 Thread vermaden
Hi and thanks for reply ;)

 Yay another FreeBSD laptop user!

I use FreeBSD for dekstop/workstation for I do not remember how long:
http://vermaden.deviantart.com/art/CorporateBSD-FreeBSD-at-Work-190680188

 Please do this:
 * join the freebsd-mobile list;* create PRs for each of your problems with 
 -10 above!;

Here are created PRs:

http://www.freebsd.org/cgi/query-pr.cgi?pr=181281
stack trace after successfull 'umount /mnt' (SDHC card mounted as msdosfs)

http://www.freebsd.org/cgi/query-pr.cgi?pr=181282
3h of work on battery on FreeBSD while 10h on Windows

http://www.freebsd.org/cgi/query-pr.cgi?pr=181283
acpi_ibm module is useless on ThinkPad W530

http://www.freebsd.org/cgi/query-pr.cgi?pr=181285
x11/xorg does not start if Nvidia Optimus is enabled on

 * the power utilisation thing is going to be fun to track down - what kind of
 CPU is in there? Is it a recent Intel? I'm playing around with their tools at 
 the
 moment; maybe we can look at the power the CPU is consuming and then
 add on the power from each of the other parts in your laptop until we
 figure out what's drawing said power
 
 * the brightness thing is known; a bunch of us have this issue and the fix
 is known. Trouble is, there's no (yet) clean fix that's made it into acpi_ibm.
 I'm glad there's another person who cares; it means we have more chance
 of getting a real fix that works for multiple people into the tree.
 
 As for suspend/resume - I'm glad it at least works for you. Right now I
 don't even get video output upon resume. But, it's a starting point. Let's
 get the PRs filed, the brightness thing pushed into -HEAD, and then start
 down the path of figuring out where the power consumption is coming
 from.

Here is the hardware information:

Lenovo ThinkPad W530
  cpu: Intel Core i7-3630QM (http://ark.intel.com/products/71459) (powerd works)
  ram: 16 GB DDR3
  hdd: 256 GB SSD
  gfx: Intel HD 4000 (works with Optimus disabled in BIOS)
  gfx: Nvidia Quadro K2000 2 GB (works with Optimus disabled in BIOS)
  sdh: RICOH R5CE823 (SD/SDHC card reader works)
  wif: Intel Centrino Ultimate-N 6300 (works)

The complete information (dmesg/dmidecode) is in the submitted PRs.

Regards,
vermaden





| Hi,
| 
| I have just tried FreeBSD on ThinkPad W530 and I must say that its very 
disapointing experience ...
| 
| The FreeBSD 9.2-RC1 and PC-BSD 9.2-BETA2 does not even boot from the USB 
drive - instant kernel panic and reboot.
| 
| The FreeBSD 10.0-CURRENT was able to boot successfully and I could install 
FreeBSD onto the drive with 'ZFS Madnss' style.
| 
| After installation with extended battery charged to 100% I have about 3 hours 
of work ... while having about 10 hours on Windows (haven't tried Linux yet). I 
disabled discrete graphics (Nvidia) in the BIOS and also added set 
hw.pci.do_power_nodriver to 3, but that also did not solved the 'battery' 
problem. The powerd daemon was of course running and worked ok.
| 
| After compiling new x11/xorg (with WITH_NEW_XORG in /etc/make.conf) along 
with x11-wm/openbox I was able to get X11 working, but I can not go back to 
console as its not implemented yet.
| 
| The screen is 100% bright all the time because acpi_ibm module probably does 
not support this model yet (changing the dev.acpi_ibm.0.lcd_brightness is 
pointless, no effects).
| 
| Suspend and resume works very poor, after resume the resolution is 640x640 
with all colors broken, requires restarting X11 in 'blind mode' (not 
implemented console switching).
| 
| Of course as all of the above is not possible, using the Nvidia Optimus 
technology (graphics card switching) is probably also not possible, which is 
possible with Bumblebee on Linux, any plans on merging that functionality into 
FreeBSD?
| 
| At least WiFi and LAN worked out of the box ...
| 
| 
| Now ... how can I help, what information can I provide to help resolve these 
issues:
| 
| 1. disable power for discrete graphics card
| 2. have working screen brightness changing and working other Fn + X shotrcuts
| 3. I guess I will have to 'just wait' for the console switching 
implementation?
| 
| ... or maybe I am doing it 'wrong' someone have W530 there and uses FreeBSD 
with any more degree of success then I?
| 
| 
| Regards,
| vermaden

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD on ThinkPad W530

2013-08-13 Thread Adrian Chadd
Hi!

Yay another FreeBSD laptop user!

Please do this:

* join the freebsd-mobile list;
* create PRs for each of your problems with -10 above!;
* the power utilisation thing is going to be fun to track down - what kind
of CPU is in there? Is it a recent Intel? I'm playing around with their
tools at the moment; maybe we can look at the power the CPU is consuming
and then add on the power from each of the other parts in your laptop until
we figure out what's drawing said power
* the brightness thing is known; a bunch of us have this issue and the
fix is known. Trouble is, there's no (yet) clean fix that's made it into
acpi_ibm. I'm glad there's another person who cares; it means we have more
chance of getting a real fix that works for multiple people into the tree.

As for suspend/resume - I'm glad it at least works for you. Right now I
don't even get video output upon resume. But, it's a starting point. Let's
get the PRs filed, the brightness thing pushed into -HEAD, and then start
down the path of figuring out where the power consumption is coming from.



-adrian



On 13 August 2013 15:21, vermaden verma...@interia.pl wrote:

 Hi,

 I have just tried FreeBSD on ThinkPad W530 and I must say that its very
 disapointing experience ...

 The FreeBSD 9.2-RC1 and PC-BSD 9.2-BETA2 does not even boot from the USB
 drive - instant kernel panic and reboot.

 The FreeBSD 10.0-CURRENT was able to boot successfully and I could install
 FreeBSD onto the drive with 'ZFS Madnss' style.

 After installation with extended battery charged to 100% I have about 3
 hours of work ... while having about 10 hours on Windows (haven't tried
 Linux yet). I disabled discrete graphics (Nvidia) in the BIOS and also
 added set hw.pci.do_power_nodriver to 3, but that also did not solved the
 'battery' problem. The powerd daemon was of course running and worked ok.

 After compiling new x11/xorg (with WITH_NEW_XORG in /etc/make.conf) along
 with x11-wm/openbox I was able to get X11 working, but I can not go back to
 console as its not implemented yet.

 The screen is 100% bright all the time because acpi_ibm module probably
 does not support this model yet (changing the dev.acpi_ibm.0.lcd_brightness
 is pointless, no effects).

 Suspend and resume works very poor, after resume the resolution is 640x640
 with all colors broken, requires restarting X11 in 'blind mode' (not
 implemented console switching).

 Of course as all of the above is not possible, using the Nvidia Optimus
 technology (graphics card switching) is probably also not possible, which
 is possible with Bumblebee on Linux, any plans on merging that
 functionality into FreeBSD?

 At least WiFi and LAN worked out of the box ...

 Now ... how can I help, what information can I provide to help resolve
 these issues:
 1. disable power for discrete graphics card
 2. have working screen brightness changing and working other Fn + X
 shotrcuts
 3. I guess I will have to 'just wait' for the console switching
 implementation?

 ... or maybe I am doing it 'wrong' someone have W530 there and uses
 FreeBSD with any more degree of success then I?

 Regards,
 vermaden
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org