Re: asmc suspend/resume

2016-04-29 Thread Lundberg, Johannes
I'm using latest 11-current (few days old).

On Friday, April 29, 2016, John Baldwin  wrote:

> On Friday, April 29, 2016 02:39:16 PM Lundberg, Johannes wrote:
> > Thanks!
> >
> > Yes, it is UEFI.
>
> I can't recall if the fixes are in HEAD yet to fetch the smbios
> strings from UEFI, but I'm pretty sure those fixes are not in 10.x.
> Which version are you using?
>
> --
> John Baldwin
>


-- 
Sent from Gmail Mobile

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: asmc suspend/resume

2016-04-29 Thread John Baldwin
On Friday, April 29, 2016 02:39:16 PM Lundberg, Johannes wrote:
> Thanks!
> 
> Yes, it is UEFI.

I can't recall if the fixes are in HEAD yet to fetch the smbios
strings from UEFI, but I'm pretty sure those fixes are not in 10.x.
Which version are you using?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: asmc suspend/resume

2016-04-29 Thread Lundberg, Johannes
Thanks!

Yes, it is UEFI.


On Fri, Apr 29, 2016 at 12:42 PM, John Baldwin  wrote:

> On Thursday, April 28, 2016 05:48:51 PM Lundberg, Johannes wrote:
> > Hi
> >
> > I've added MacbookAir5,1 to asmc and will send a patch soon. Just wanted
> to
> > ask for some advice first.
> >
> > Copying the configuration from MBA3 I get the following:
> >
> > SMS seems to be not supported. kldload takes minutes to complete and
> gives
> > weird values. I just disable that for now.
> >
> > FAN seems to function normally except "safespeed" is very large number
> > compared to maxspeed.
> >
> > TEMP also seems correct but can not really confirm what sensors are on in
> > the machine.
> >
> > Light.right is always zero.
> > Light.left seems to work normally.
> >
> > Light.control works fine except:
> > The keyboard backlight is turned off when resuming from suspend (S3). The
> > sysctl reports the last set value but it needs to be set again after
> > resume. Are there suspend / resume functions like probe/attach etc that
> are
> > called that I can implement or how do kernel modules handle
> suspend/resume?
>
> Yes, there is device_suspend and device_resume.
>
> > Output:
> >
> > dev.asmc.0.light.control: 0
> > dev.asmc.0.light.right: 0
> > dev.asmc.0.light.left: 1
> > dev.asmc.0.temp.TC0P: 47
> > dev.asmc.0.temp.TC0E: 51
> > dev.asmc.0.temp.TC0D: 52
> > dev.asmc.0.temp.TB2T: 32
> > dev.asmc.0.temp.TB1T: 34
> > dev.asmc.0.temp.enclosure: 34
> > dev.asmc.0.fan.0.targetspeed: 2000
> > dev.asmc.0.fan.0.maxspeed: 6500
> > dev.asmc.0.fan.0.minspeed: 2000
> > dev.asmc.0.fan.0.safespeed: 16383
> > dev.asmc.0.fan.0.speed: 2002
> > dev.asmc.0.fan.0.id: Exhaust
> > dev.asmc.0.%parent: acpi0
> > dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0
> > dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_
> > dev.asmc.0.%driver: asmc
> > dev.asmc.0.%desc: Apple SMC MacBook Air 11" (Mid 2012)
> > dev.asmc.%parent:
> >
> >
> > One more thing,
> > dmidecode can't find any SMBIOS or DMI entries so I have to add
> > smbios.system.product="MacBookAir5,1"
> > to /boot/loader.conf. Is this normal?
>
> Are you booting via UEFI?
>
> --
> John Baldwin
>

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: asmc suspend/resume

2016-04-29 Thread John Baldwin
On Thursday, April 28, 2016 05:48:51 PM Lundberg, Johannes wrote:
> Hi
> 
> I've added MacbookAir5,1 to asmc and will send a patch soon. Just wanted to
> ask for some advice first.
> 
> Copying the configuration from MBA3 I get the following:
> 
> SMS seems to be not supported. kldload takes minutes to complete and gives
> weird values. I just disable that for now.
> 
> FAN seems to function normally except "safespeed" is very large number
> compared to maxspeed.
> 
> TEMP also seems correct but can not really confirm what sensors are on in
> the machine.
> 
> Light.right is always zero.
> Light.left seems to work normally.
> 
> Light.control works fine except:
> The keyboard backlight is turned off when resuming from suspend (S3). The
> sysctl reports the last set value but it needs to be set again after
> resume. Are there suspend / resume functions like probe/attach etc that are
> called that I can implement or how do kernel modules handle suspend/resume?

Yes, there is device_suspend and device_resume.

> Output:
> 
> dev.asmc.0.light.control: 0
> dev.asmc.0.light.right: 0
> dev.asmc.0.light.left: 1
> dev.asmc.0.temp.TC0P: 47
> dev.asmc.0.temp.TC0E: 51
> dev.asmc.0.temp.TC0D: 52
> dev.asmc.0.temp.TB2T: 32
> dev.asmc.0.temp.TB1T: 34
> dev.asmc.0.temp.enclosure: 34
> dev.asmc.0.fan.0.targetspeed: 2000
> dev.asmc.0.fan.0.maxspeed: 6500
> dev.asmc.0.fan.0.minspeed: 2000
> dev.asmc.0.fan.0.safespeed: 16383
> dev.asmc.0.fan.0.speed: 2002
> dev.asmc.0.fan.0.id: Exhaust
> dev.asmc.0.%parent: acpi0
> dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0
> dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_
> dev.asmc.0.%driver: asmc
> dev.asmc.0.%desc: Apple SMC MacBook Air 11" (Mid 2012)
> dev.asmc.%parent:
> 
> 
> One more thing,
> dmidecode can't find any SMBIOS or DMI entries so I have to add
> smbios.system.product="MacBookAir5,1"
> to /boot/loader.conf. Is this normal?

Are you booting via UEFI?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: asmc suspend/resume

2016-04-28 Thread Lundberg, Johannes
Just found some errors in dmesg I can add.

Fan safe speed:
asmc0: asmc_key_read for key F0Sf failed 10 times, giving up

Motion sensor:
asmc0: asmc_key_read for key MOCN failed 10 times, giving up
asmc0: asmc_key_read for key MO_X failed 10 times, giving up
asmc0: asmc_key_read for key MO_Y failed 10 times, giving up
asmc0: asmc_key_read for key MO_Z failed 10 times, giving up



On Thu, Apr 28, 2016 at 5:48 PM, Lundberg, Johannes <
johan...@brilliantservice.co.jp> wrote:

> Hi
>
> I've added MacbookAir5,1 to asmc and will send a patch soon. Just wanted
> to ask for some advice first.
>
> Copying the configuration from MBA3 I get the following:
>
> SMS seems to be not supported. kldload takes minutes to complete and gives
> weird values. I just disable that for now.
>
> FAN seems to function normally except "safespeed" is very large number
> compared to maxspeed.
>
> TEMP also seems correct but can not really confirm what sensors are on in
> the machine.
>
> Light.right is always zero.
> Light.left seems to work normally.
>
> Light.control works fine except:
> The keyboard backlight is turned off when resuming from suspend (S3). The
> sysctl reports the last set value but it needs to be set again after
> resume. Are there suspend / resume functions like probe/attach etc that are
> called that I can implement or how do kernel modules handle suspend/resume?
>
> Output:
>
> dev.asmc.0.light.control: 0
> dev.asmc.0.light.right: 0
> dev.asmc.0.light.left: 1
> dev.asmc.0.temp.TC0P: 47
> dev.asmc.0.temp.TC0E: 51
> dev.asmc.0.temp.TC0D: 52
> dev.asmc.0.temp.TB2T: 32
> dev.asmc.0.temp.TB1T: 34
> dev.asmc.0.temp.enclosure: 34
> dev.asmc.0.fan.0.targetspeed: 2000
> dev.asmc.0.fan.0.maxspeed: 6500
> dev.asmc.0.fan.0.minspeed: 2000
> dev.asmc.0.fan.0.safespeed: 16383
> dev.asmc.0.fan.0.speed: 2002
> dev.asmc.0.fan.0.id: Exhaust
> dev.asmc.0.%parent: acpi0
> dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0
> dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_
> dev.asmc.0.%driver: asmc
> dev.asmc.0.%desc: Apple SMC MacBook Air 11" (Mid 2012)
> dev.asmc.%parent:
>
>
> One more thing,
> dmidecode can't find any SMBIOS or DMI entries so I have to add
> smbios.system.product="MacBookAir5,1"
> to /boot/loader.conf. Is this normal?
>
> Thanks!
>
> Johannes
>
>

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

asmc suspend/resume

2016-04-28 Thread Lundberg, Johannes
Hi

I've added MacbookAir5,1 to asmc and will send a patch soon. Just wanted to
ask for some advice first.

Copying the configuration from MBA3 I get the following:

SMS seems to be not supported. kldload takes minutes to complete and gives
weird values. I just disable that for now.

FAN seems to function normally except "safespeed" is very large number
compared to maxspeed.

TEMP also seems correct but can not really confirm what sensors are on in
the machine.

Light.right is always zero.
Light.left seems to work normally.

Light.control works fine except:
The keyboard backlight is turned off when resuming from suspend (S3). The
sysctl reports the last set value but it needs to be set again after
resume. Are there suspend / resume functions like probe/attach etc that are
called that I can implement or how do kernel modules handle suspend/resume?

Output:

dev.asmc.0.light.control: 0
dev.asmc.0.light.right: 0
dev.asmc.0.light.left: 1
dev.asmc.0.temp.TC0P: 47
dev.asmc.0.temp.TC0E: 51
dev.asmc.0.temp.TC0D: 52
dev.asmc.0.temp.TB2T: 32
dev.asmc.0.temp.TB1T: 34
dev.asmc.0.temp.enclosure: 34
dev.asmc.0.fan.0.targetspeed: 2000
dev.asmc.0.fan.0.maxspeed: 6500
dev.asmc.0.fan.0.minspeed: 2000
dev.asmc.0.fan.0.safespeed: 16383
dev.asmc.0.fan.0.speed: 2002
dev.asmc.0.fan.0.id: Exhaust
dev.asmc.0.%parent: acpi0
dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0
dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_
dev.asmc.0.%driver: asmc
dev.asmc.0.%desc: Apple SMC MacBook Air 11" (Mid 2012)
dev.asmc.%parent:


One more thing,
dmidecode can't find any SMBIOS or DMI entries so I have to add
smbios.system.product="MacBookAir5,1"
to /boot/loader.conf. Is this normal?

Thanks!

Johannes

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"