/srv/irclogs.ubuntu.com/2019/09/17/#ubuntu+1.txt

=== cpaelzer__ is now known as cpaelzer
=== lotus|i5 is now known as lotuspsychje
letterripis there a way to disable my WLAN hardware switch?17:57
letterripit is currently mapped to keycode 246 = XF86WLAN NoSymbol XF86WLAN17:57
letterripi try and change its state with rfkill, but that is ignored17:57
TJ-letterrip: just came in, saw your last 2 messages. having trouble with soft or hard block on wifi? is it an Acer or Asus system?17:59
letterripTJ- Sony VAIO17:59
letterriphard block17:59
letterripit fails intermittently - can be 'fixed' sometimes by pressing on the case18:00
lordcirth_letterrip, if it's bound to a keycode, could you unbind it in your keymap?18:00
TJ-which Vaio model? I have one I don't use now but that had the same kind of issue - I had to resolder and/or adjust the physical switch 18:01
TJ-I found if I 'rammed' the switch to the enable position it was fine for a long time but it would eventually disengage and I'd have to repeatedly push it back n forward roughly to get it to re-enagage, so I took it apart and fixed it permanently18:02
letterripTJ- VGN-AR320E - i think it is the same as one of hte older Acer/Asus - I could potentially disable the system and fix the physical switch - but if possible would prefer a kernel/software method18:02
TJ-letterrip: if a hard block is happening there's nothing you can do in software18:02
letterripTJ- it is a hardware switch, but I think the kernel can ignore it18:03
letterripie it isn't interrupting the powersupply to the wifi - the kernel just 'knows' it is supposed to turn the wifi off/on18:03
TJ-letterrip: do you know if on that model the sony-laptop module controls rfkill function?18:03
letterripusing rfkill doesn't work18:04
TJ-looking at the kernel's rfkill module, it only has 1 param, master_switch_mode and that only controls the effect of SW_RFKILL_ALL 18:06
letterripTJ- ah18:07
letterripTJ- I've read elsewhere that 'disabling the sony_laptop' module has worked for others to disable the hardware switch18:08
letterripon related models18:09
TJ-sony-laptop.c has a lot of code handling rfkill too so looks like the signals come in via ACPI, where it calls sony_call_snc_handle() to get the switch state18:09
TJ-letterrip: it might do, yes18:09
TJ-you may also lose other functionality too 18:09
letterripok - will look at the source, and maybe make a local modification18:11
letterripthanks for the help18:11
TJ-letterrip: I did some exhaustive analysis of the ACPI of a range of Vaio models some time back, I'm trying to find where I left it so you can take a look18:13
letterripah cool18:13
TJ-Grrr... took me ages, had to remember how to map a directory from an old expired domain to a new domain! https://iam.tj/projects/snc/   -- it's analysis of the ACPI methods of a large number of models which we used to develop the sony-laptop module functions18:27
letterripTJ- greatly appreciated18:28
TJ-I'm struggling to remember which method dealt with rfkill... it may have been GWDP18:28
letterripk18:29
TJ-it may also have had some involvement of the methods dealing with extended key scan-code ... I don't have my original notes any more... I was wondering/hoping this data might point to a way to selectively disable hardware kill... but the easy way of course is to try it with sony-laptop unloaded18:30
TJ-blimey, that brings back memories - those tables were all auto-generated using awk scripts18:31
letterripTJ- yeppers18:33
letterripthanks for the pointer18:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!