Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-20 Thread Muhammad Muntaza
On Apr 16, 2017 7:23 AM, "Gregor Best"  wrote:

Hi Daniel,

I have a laptop with a similar chipset. The issue is that the
inteldrm(4) driver does not support Skylake devices at the moment.

If you boot the machine EFI mode, efifb(4) should attach to the EFI
frame buffer. This in turn allows you to use Xorg's wsfb driver with an
/etc/X11/xorg.conf which looks like this:

Section "Device"
Identifier "default device"
Driver "wsfb"
EndSection


Its work for my Netbook Asus E202S too.

Thanks,


Muhammad Muntaza


Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
Got it! CSM setting must be enable in BIOS setup to correctly boot on fb
console. Now I have wsfb running.

Thanks for the kind help!

2017-04-16 17:34 GMT+02:00 Daniel Gracia :

> I tried the solution. OpenBSD gets to boot, and I can see the resolution
> change to fb console for an instant, then the panel goes black. Too quick
> to be able to see anything; I'll try recording the screen with my
> smartphone xD
>
> This laptop doesn't have HDD lights, so I'm not sure if the computer is
> totally stalled or is just a messed display.
>
> Will keep trying!
>
>
> 2017-04-16 16:26 GMT+02:00 Daniel Gracia :
>
>> Thanks for the tip; I was installing a Win side-to-side and using legacy
>> BIOS mode.
>>
>> Cheers!
>>
>> 2017-04-16 1:21 GMT+02:00 Gregor Best :
>>
>>> Hi Daniel,
>>>
>>> I have a laptop with a similar chipset. The issue is that the
>>> inteldrm(4) driver does not support Skylake devices at the moment.
>>>
>>> If you boot the machine EFI mode, efifb(4) should attach to the EFI
>>> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
>>> /etc/X11/xorg.conf which looks like this:
>>>
>>> Section "Device"
>>> Identifier "default device"
>>> Driver "wsfb"
>>> EndSection
>>>
>>> Apart from missing suspend/resume and 3D-acceleration, such a setup
>>> seems to work nicely for me. Chrome/Firefox need to be taught not to use
>>> graphics acceleration, and for mpv you need to use the commandline
>>> parameter `-vo x11` to tell it to use oldschool X11 rendering.
>>> Brightness control can be done with
>>>
>>> https://github.com/jcs/intel_backlight_fbsd
>>>
>>> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
>>> name, it works on OpenBSD as well.
>>>
>>> --
>>> Gregor



Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
I tried the solution. OpenBSD gets to boot, and I can see the resolution
change to fb console for an instant, then the panel goes black. Too quick
to be able to see anything; I'll try recording the screen with my
smartphone xD

This laptop doesn't have HDD lights, so I'm not sure if the computer is
totally stalled or is just a messed display.

Will keep trying!


2017-04-16 16:26 GMT+02:00 Daniel Gracia :

> Thanks for the tip; I was installing a Win side-to-side and using legacy
> BIOS mode.
>
> Cheers!
>
> 2017-04-16 1:21 GMT+02:00 Gregor Best :
>
>> Hi Daniel,
>>
>> I have a laptop with a similar chipset. The issue is that the
>> inteldrm(4) driver does not support Skylake devices at the moment.
>>
>> If you boot the machine EFI mode, efifb(4) should attach to the EFI
>> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
>> /etc/X11/xorg.conf which looks like this:
>>
>> Section "Device"
>> Identifier "default device"
>> Driver "wsfb"
>> EndSection
>>
>> Apart from missing suspend/resume and 3D-acceleration, such a setup
>> seems to work nicely for me. Chrome/Firefox need to be taught not to use
>> graphics acceleration, and for mpv you need to use the commandline
>> parameter `-vo x11` to tell it to use oldschool X11 rendering.
>> Brightness control can be done with
>>
>> https://github.com/jcs/intel_backlight_fbsd
>>
>> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
>> name, it works on OpenBSD as well.
>>
>> --
>> Gregor



Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
Thanks for the tip; I was installing a Win side-to-side and using legacy
BIOS mode.

Cheers!

2017-04-16 1:21 GMT+02:00 Gregor Best :

> Hi Daniel,
>
> I have a laptop with a similar chipset. The issue is that the
> inteldrm(4) driver does not support Skylake devices at the moment.
>
> If you boot the machine EFI mode, efifb(4) should attach to the EFI
> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
> /etc/X11/xorg.conf which looks like this:
>
> Section "Device"
> Identifier "default device"
> Driver "wsfb"
> EndSection
>
> Apart from missing suspend/resume and 3D-acceleration, such a setup
> seems to work nicely for me. Chrome/Firefox need to be taught not to use
> graphics acceleration, and for mpv you need to use the commandline
> parameter `-vo x11` to tell it to use oldschool X11 rendering.
> Brightness control can be done with
>
> https://github.com/jcs/intel_backlight_fbsd
>
> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
> name, it works on OpenBSD as well.
>
> --
> Gregor



Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-15 Thread Gregor Best
Hi Daniel,

I have a laptop with a similar chipset. The issue is that the
inteldrm(4) driver does not support Skylake devices at the moment.

If you boot the machine EFI mode, efifb(4) should attach to the EFI
frame buffer. This in turn allows you to use Xorg's wsfb driver with an
/etc/X11/xorg.conf which looks like this:

Section "Device"
Identifier "default device"
Driver "wsfb"
EndSection

Apart from missing suspend/resume and 3D-acceleration, such a setup
seems to work nicely for me. Chrome/Firefox need to be taught not to use
graphics acceleration, and for mpv you need to use the commandline
parameter `-vo x11` to tell it to use oldschool X11 rendering.
Brightness control can be done with

https://github.com/jcs/intel_backlight_fbsd

if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
name, it works on OpenBSD as well.

--
Gregor

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-15 Thread Daniel Gracia
Hi there!

Running a Thinkpad T460s on lastest -snapshot X environment won't start.
Tried both, with no xorg.conf and a simple:

Section "Device"
Identifier"Vesa"
Driver"vesa"
EndSection

to no avail.

machdep.allowaperture=2 is set on sysctl.conf. Some advice to start hacking
on this?

Regards!

==> dmesg:
OpenBSD 6.1-current (GENERIC.MP) #55: Fri Apr 14 13:54:33 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 7826608128 (7464MB)
avail mem = 7584727040 (7233MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xcf054000 (65 entries)
bios0: vendor LENOVO version "N1CET54W (1.22 )" date 02/10/2017
bios0: LENOVO 20F9005CMS
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET APIC
MCFG SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 24 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus -1 (EXP2)
acpiprt6 at acpi0: bus 4 (EXP3)
acpiprt7 at acpi0: bus -1 (EXP5)
acpiprt8 at acpi0: bus -1 (RP09)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN004B" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00HW022" serial  37