/srv/irclogs.ubuntu.com/2018/10/14/#ubuntu+1.txt

TJ-having a few 'issues' with pulling it out cleanly00:14
Gr33nteaif you dont mind me asking what do you mean by pulling it out cleanly? : o00:15
TJ-To create a Dynamic Kernel Module system package, the driver source and supporting files needs to be extracted from the kernel source as standalone code, so the module will build separately00:19
Gr33nteaah gotcha ^_^, if its too much trouble then its okay. I don't want to take away more of your time. you've helped me so much already00:20
TJ-No, it's me being rusty at it00:37
TJ-I think I just figured out the issue00:37
Gr33nteaWhat was the problem? : o00:39
TJ-haha me! I'm on 18.04 with kernel 4.15 ... pulled the source from 4.18. in between those versions a lot has changed so a symbol that is used in 4.18 isn't available in 4.1500:40
TJ-I need to checkout the Ubuntu 4.18.0-8-generic source first00:42
Gr33nteaLOL, i have to admit its nice knowing ppl way more competent than me also make silly mistakes xD00:42
Bashing-omTJ-: Beaware of updates in cosmic .. now at 4.18.0-8-10 .00:43
Bashing-om!info linux-image-generic cosmic00:45
ubottulinux-image-generic (source: linux-meta): Generic Linux kernel image. In component main, is optional. Version 4.18.0.10.11 (cosmic), package size 2 kB, installed size 14 kB00:45
TJ-Bashing-om: makes no difference :)00:45
TJ-the module will work on whichever version, once I'm using the correct source :)00:46
Bashing-omTJ-: :) .. Just checking :P00:46
TJ-hehehe thanks ... I'm 1/2 asleep I think00:48
TJ-Just fetching the 4.18.0-8 headers now, luckily they're in bionic-proposed for the HWE kernels00:49
Gr33nteaTJ-: Im reading your hacking course  : o from ur site. very cool. thank you for posting it.00:51
TJ-Gr33ntea: which is that!? I start os many things and then go off finding something else to play with!00:54
TJ-Gr33ntea: right, it built here but fails to install since I don't have that kernel version installed for some reason. I'll install it and just confirm it installs, then I can add your model info and rebuild to confirm and then let you have the code00:55
Gr33nteaTJ-: The one that can be found here http://iam.tj/projects/hacking/101/index.html I believe its seperated in 3 courses. and okay thank you! I seriously appreciate it, I been trying every forum thread solution for the past 2 days so i really appreciate everything you're doing!00:56
TJ-Gr33ntea: oh, that! I didn't realise I'd put the intro up there. Must have been sharing it for feedback!00:59
TJ-Gr33ntea: I need info about your model. Can you show me "pastebinit <( sudo dmidecode -t system )"01:11
Gr33nteasure thing! one sec01:11
Gr33nteaTJ-: hm it tells me im attempting to send an empty document01:15
Gr33nteaTJ-: lemme try once more01:15
TJ-hmmm, then try without the "-t system" part.01:16
TJ-I cannot imagine the system-info is missing though -it better not be!01:16
Gr33nteaweird i have to run the command without the pastebinit first and then run it again to work01:18
Gr33nteahttp://paste.ubuntu.com/p/rfDqHbfVQB/01:18
Gr33nteathere it is01:18
TJ-ha, I thought as much, I could have predicted the format from the Y520 info! "Y530-15ICH" is what I needed01:23
Gr33nteaYeah i think the only thing rly different from the 520 is the way it looks xD, and yet they charge more for it01:25
TJ-right: "cd $HOME/Downloads" then "wget http://iam.tj/projects/ubuntu/ideapad_laptop-dkms.tar.gz"01:26
TJ-oh, you'll need to move the file to the Y530 of course 01:27
TJ-There, in the directory where the file is, you do "sudo tar -xf ideapad_laptop-dkms.tar.gz -C /" which will extract to /usr/src/ideapad_laptop-1.1/01:28
TJ-Remove the module blacklist if it is still there in /etc/modprobe.d/ 01:29
Gr33nteagotcha one sec01:30
TJ-Then use DKMS to build/install the module with "sudo dkms add ideapad_laptop/1.1" then "sudo dkms install ideapad_laptop/1.1" - if all is good you'll see "Installing to /lib/modules/4.18.0-8-generic/updates/dkms/" ... "depmod" ... "DKMS: install completed."  At this point you're ready to reboot and test01:30
TJ-whilst you play I'll make a cuppa! It's 0230 here01:32
Gr33nteaTJ-:  no wifi :( gonna check to see if its listed as blocked still01:39
TJ-hmmm, we'll do some further tests once you've done that01:39
Gr33nteayup still listed as blocked01:40
TJ-also ensure our module took over with "modinfo ideapad_laptop" and check the "filename:" path ends in "updates/ideapad_laptop.ko"01:41
TJ-or hyphen, not underscore01:41
TJ-It might be worth adding some debug messages to the module so we know for sure it recognises your model by what I added01:42
Gr33nteait ends in updates/dkms/ideapas-lalptop.ko01:42
TJ-good, that's where DKMS installs the module to, so it is correct.01:43
TJ-I'll add some debug messages and send you the updated source01:43
Gr33nteagotcha01:43
Gr33nteaalso when do you sleep xD, i cant believe its 2 over there id be knocked out01:43
TJ-Oh, I think I made a mistake01:45
TJ-I used the same DMI match format as the Y530 which does DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y520-15IKB"),01:46
TJ-but it has .ident = "Lenovo Legion Y530-15ICH", (note the "Legion") there01:47
TJ-Now, the ident is just a friendly name to display, actual matching is done using the DMI_PRODUCT_VERSION, which doesn't have "Legion" in... whereas yours does!01:47
TJ-From your dmidecode "Version: Lenovo Legion Y530-15ICH"01:48
TJ-So I suspect I need to change to that, let me do that01:48
TJ-Done. Re-download it from http://iam.tj/projects/ubuntu/ideapad_laptop-dkms.tar.gz 01:49
Gr33nteagotcha01:49
TJ-You know the rest :)01:49
Gr33nteaokay one sec, and yup! :)01:50
TJ-if the match occurs, there should be no rfkill entries for ideapad_wlan etc01:50
Gr33nteaI should first delete the other folders right?01:50
Gr33nteafrom the first install01:50
TJ-Nope01:50
Gr33nteaokie01:51
TJ-all you need do once the new source is extracted is "sudo dkms remove ideapad_laptop/1.1" then "sudo dkms install ideapad_laptop/1.1"01:51
Gr33nteahmsudo dkms remove ideapad_laptop/1.1 gives an error01:57
Gr33nteainvlaid number of parameters01:57
TJ-oh, sorry, add " --all" -- that command needs kernel version or --all01:58
Gr33nteaah gotcha my bad01:58
Gr33ntearebooting01:59
TJ-it might not require rebooting, which could save some time. It should be possible to unload/load the module using modprobe - depends on what other modules are depending/using it02:00
Gr33nteasame deal :( no wifi and sill locked02:02
TJ-rfkill still shows those ideapad nodes?02:03
Gr33nteayup02:03
TJ-From the way I read the source, it inferred those nodes wouldn't show up, or else would be set to enabled. Something weird going on. Can you show me the "pastebinit <( dmesg )" 02:04
Gr33nteasorry for the delay http://paste.ubuntu.com/p/qS3653gbcJ/02:06
TJ-Ha, things have changed! Did you add some parameter for the iwlwifi module? because we have "iwlwifi: unknown parameter 'disable_msix' ignored"02:08
Gr33nteathat disable_msix thing was actually from a thread solution i had tried yesterday02:09
Gr33nteai can try and find the thread02:09
TJ-in the previous dmesg from earlier, there was "iwlwifi 0000:00:14.3: RF_KILL bit toggled to enable radio." but this time nothing like that02:10
TJ-the iwlwifi module doesn't have that option. You can check with "modinfo -F parm iwlwifi"02:11
TJ-I'm going to find out what causes "rfkill: input handler disabled"02:12
Gr33nteai found the thread, if its of any help. https://askubuntu.com/questions/1038242/no-wifi-option-on-ubuntu-18-04-and-16-0402:13
Gr33nteabut yeh i just checked also not there02:14
Gr33nteamaybe i forgot to type in the =1 part?02:15
Gr33nteanot sure it seemed to ork for someone02:15
Gr33nteashould i retry that?02:15
Gr33nteaalso TJ- i just actually checked the forum post i have made about this problem and dmesg does show "[   13.851406] iwlwifi: unknown parameter 'disable_msix' ignored"02:17
TJ-That option is specific to the iwlwifi-backport source-code. But the issue there was a different to yours. In that one, the iwlwifi module was crashing and generating a stack-trace 02:18
Gr33nteaah okie02:18
TJ-disable_msix means disable Message Signalling Interupt eXtension02:18
TJ-I thnk at this point you should install that BIOS upgrade02:20
TJ-Sorry it took me so long to get the module going else you could have got that done earlier!02:20
Gr33nteaNo problem at all! I seriously cannot thank you enough for all this effort you've put02:21
Gr33nteaI will give the bios upgrade a go then02:21
TJ-Whilst you do I'm reading the rfkill code in detail02:29
TJ-I think i've spotted something else that the ideapad_laptop.c needs - I notice for a couple of modules an UUIDis required for the WMI (ACPI) interface. Yours being a new model I'd bet it has one too02:31
TJ-Without it Linux cannot identify the Fn + Fx key sequences02:32
Gr33nteahm but currently the Fn + Fx keys do work in the case of brightness and volume i believe02:33
Gr33nteaso does tht rule tht out?02:33
Gr33nteaTJ-: about to test the new bios moment of truth02:37
TJ-OK02:37
TJ-ahh, this GUID thing is when the Esc key dones't work and needs Fn + Esc!02:37
Gr33nteadidnt work D:02:38
Gr33nteacruel fate02:38
TJ-I think this is due to a bug in the firmware ACPI. Do you fancy extracting that so I can analyse it?02:39
Gr33nteaHm before we dive into that02:41
Gr33nteaI just noticed that someone uploaded a guide recently to get Ubuntu onto the y530 02:42
Gr33ntealooking at tht now02:42
Gr33nteahttps://forums.lenovo.com/t5/Gaming-Laptops-Knowledge-Base/Installing-Ubuntu-18-04-on-the-Legion-Y530/ta-p/418725102:42
Gr33nteahm02:43
Gr33nteadon't kill me but02:43
Gr33nteai think something weird has been going on becuz02:43
Gr33nteain his guide he adds the blacklist to the blacklist.conf but when i added the blacklist using the commands that were given it created a it didnt add it to the blacklist.conf02:44
Gr33nteathe file was still in the same directory just not the same file02:44
Gr33nteai hope im making sense02:45
TJ-let me look02:45
Gr33nteasorry i meant to say when i ran the commands to add the thing we black listed it created a seperate file, and didnt add to the blacklist.conf and that the file it created as in the same directory but yeh02:46
TJ-as long as you have a file in /etc/modprobe.d/ with the suffix ".conf" and the content "blacklist ideapad_laptop" it's fine02:47
Gr33nteaoh 02:47
Gr33nteaokay it did have tht02:47
Gr33nteahm02:47
Gr33nteaweird so why is it working for him02:48
TJ-the idea is by having 1 file per option multiple packages can install options without needing to parse/write a single file 02:48
TJ-lets try unloading the module. Do "lsmod | grep idea" and tell me what the number is at the end of the line. We need 0 (no references to the module) in order to unload it02:49
TJ-We should also confirm that that blacklist is correct and working02:50
Gr33nteaso ideapad_laptop 32768 0 gets printed out02:51
Gr33nteawait its potentilly important i show the rest of the output 2 02:52
Gr33nteagonna paste it02:52
TJ-Gr33ntea: that's fine, so we can unload it manually with "sudo modprobe -r ideapad_laptop"02:54
Gr33nteahttp://paste.ubuntu.com/p/dysT9X4GSw/02:54
Gr33nteaokay02:54
TJ-that's fine, those other modules are required by ideapad_laptop, but nothing depends on it, so it can be removed02:54
Gr33nteadone02:55
TJ-lets see if that made any change. do "dmesg | tail" - anything related to rfkill or wifi reported?02:55
Gr33nteaomg02:55
Gr33nteai love u02:56
Gr33nteait works02:56
TJ-LoL02:56
Gr33nteai cant believe it02:56
TJ-right, so we have now proved the module is at fault, so your blacklist is not working properly, so lets find out why02:56
Gr33nteahow do we do tht02:57
TJ-connect to it via SSH from your current PC so you can easily copy/paste stuff now. On the Y530 do "sudo apt install openssh-server"02:57
Gr33nteaalso im so sorry for putting u thru all tht02:57
Gr33nteai should have tried it sooner02:57
TJ-no worries; we've discovered a bug in that module which our code should have fixed, and didn't02:58
TJ-get the current IP address of the Y530 so you can connect to it via SSH from your current PC. "ip addr show" - look at the address of the wifi interface02:59
TJ-Then on your current PC you can do "ssh myusername@the.ip.addr.ess"02:59
TJ-"myusername" being a user account on the Y530 of course03:00
Gr33nteahm03:01
Gr33nteafor some reason its hanging03:01
TJ-what 'it' ?03:01
Gr33ntealemme jus log into irc from tht laptop to save time03:01
TJ-OK03:01
Gr33nteaHiya03:02
TJ-using the Y530 now?03:02
Gr33nteayup03:02
TJ-OK, do "sudo apt install pastebinit"03:03
Gr33nteadone03:03
TJ-then "pastebinit <( ls -latr /etc/modprobe.d/; for n in /etc/modprobe.d/*; do echo "== $n =="; cat $n; done )" 03:04
Gr33nteahttp://paste.ubuntu.com/p/xfR5Wdqbyg/03:04
TJ-the line is commented out (starts with a #) : "#blacklist ideapad_laptop"03:05
TJ-remove the leading # and it'll blacklist at boot03:05
Gr33nteayeah i had the # because you wanted me to remove manually03:06
Gr33nteabut the file one should have worked also right?03:06
TJ-ahh, well, with that gone a reboot should not load the module03:06
TJ-Yes03:06
Gr33nteai removed the #03:07
TJ-OK, whilst you are there...03:08
TJ-... in /etc/modprobe.d/iwlwifi.conf remove that option "disable_msix=1" and possibly the one after it - do you really need to disable 802.11n ?03:08
TJ-The "options iwlwifi 11n_disable=8" part. I'm suspecting you added those whilst trying to fix the wifi03:09
TJ-With those changes do a reboot and check it works 03:09
Gr33nteaListen those were dark times, i was willing to try everything and anything03:09
TJ-:)03:10
Gr33nteaokay brb! :D03:10
Gr33nteaTJ-, Yay it worked!03:13
TJ-Good!03:14
TJ-So the module needs to correctly disable the rfkill hw switch, and our addition didn't seem to do it. There's a comment in the source about that saying:03:15
TJ-     * On some models without a hw-switch (the yoga 2 13 at least)03:15
TJ-     * VPCCMD_W_RF must be explicitly set to 1 for the wifi to work03:15
TJ-and that is what matching on the model from DMI should trigger03:15
TJ-so let's remove the custom module since it's superflous now the blacklist is working03:16
TJ-"sudo dkms remove ideapad_laptop/1.1 --all"03:16
Gr33nteahm 2 questions03:17
Gr33nteasince your module did exactly that how come the wifi didn't work?03:18
TJ-for some reason the DMI version we added wasn't matching.03:18
TJ-So either both versions we tried are not correct, or the kernel is seeing a different string than dmidecode reports03:19
TJ-which is highly unlikely but who knows!03:19
Gr33nteahm, I think i'll make it my personal project to figure this one out03:19
Gr33nteathe 2nd question was could i see the original source03:22
Gr33nteanvm03:23
Gr33nteai have it xD03:23
Gr33nteafor some reason i wasnt seeing those comments about the set to 103:23
Gr33nteabut i see them now03:23
TJ-the key part is lines 1265 and 128303:23
TJ-and 1265 is dependent on the content of the no_hw_rfkill_list array, where we added your model's unique DMI version at line 114903:25
TJ-and that comes from the dmidecode results03:25
Gr33nteaSo I was reading your post you made about ACPI and how most bios check to see if the OS is windows, and if it isn't it just limits ACPI features. I'm guessing this module was created to prevent that?03:28
TJ-not for this; in acpi_osi case the firmware limits services based on the OS id. For this, the ACPI embedded controller is used to manipulate these platform-specific (lenovo-specific) devices03:31
TJ-I may have spotted why the match didn't work.03:31
TJ-Can you show me "pastebinit <( sudo dmidecode )"03:31
Gr33nteaHere ya go03:32
Gr33nteahttp://paste.ubuntu.com/p/wqKbNFdBY2/03:32
TJ-hmm, nope, we had the correct string 03:35
TJ-my concern is that DMI_PRODUCT_VERSION is not referencing DMI type 1 Version. I'm trying to figure it out now03:37
Gr33nteagonna make some tea brb03:40
TJ-hmm, no, it is correct. line 447 of drivers/firmware/dmi_scan.c shows it is in the type 1 code block03:42
TJ-How about we add code to the module to report those DMI attributes we want to match on, so we can see in the kernel log what the kernel actually sees03:47
Gr33nteaJust got back03:48
Gr33nteatht sounds awesome, im down03:49
TJ-I've just added the code; am doing a test build03:57
Gr33nteaTJ-, what is String referencing in dmi_scan.c line 168, line 447 that you mentioned passes it a 604:01
Gr33nteabut im not sure wht tht is in regard to04:01
Gr33nteawish they would use the javadoc format and have param explanations in the comments above the function04:03
TJ-That'd triple the source size!04:04
TJ-OK, fetch the new source from http://iam.tj/projects/ubuntu/ideapad_laptop-dkms.tar.gz04:04
TJ-extract as before: "sudo tar -xf ideapad_laptop-dkms.tar.gz -C /" then "sudo dkms remove ideapad_laptop/1.1. --all && sudo dkms install ideapad_laptop/1.1"04:05
Gr33nteaTJ-, would that matter? don't compilers ignore comments? : o and okay gonna test it now04:05
TJ-You'll see I've added a printk in there, which reports the values04:07
Gr33nteadid we already remove it04:08
Gr33nteai think i only have to install04:08
Gr33nteadidn't*04:08
Gr33nteaokay i installed it04:08
TJ-the line is printk("DMI: %s, %s. has_hw_rfkill_switch=%d\n", dmi_vendor, dmi_version, priv->has_hw_rfkill_switch);04:09
Gr33nteau want dmesg paste?04:09
Gr33nteagonna reboot brb04:10
TJ-so now you have to manually load it, because of the blacklist you need to use "sudo insmod /lib/modules/$(uname -r)/updates/dkms/ideapad_laptop.ko"04:11
Gr33nteaTJ-, back04:14
TJ-:)04:14
TJ-you shot off before I could tell you you didn't need to reboot!04:14
TJ-so now you have to manually load it, because of the blacklist you need to use "sudo insmod /lib/modules/$(uname -r)/updates/dkms/ideapad_laptop.ko"04:15
Gr33nteasorry x304:15
TJ-did the message show up?04:15
Gr33nteawhich message?04:15
TJ-the message I added to the module, which should be in the 'dmesg' outout. Try "dmesg | grep DMI"04:16
Gr33ntealoading didnt work04:16
Gr33nteaERROR: could not load module /lib/modules/4.18.0-8-generic/updates/dkms/ideapad_laptop.ko: No such file or directory04:17
Gr33ntealemme install again?04:17
TJ-hmmm, does "dkms status" report it installed?04:17
Gr33nteayeh04:17
Gr33nteadkms status ideapad_laptop04:18
Gr33nteaideapad_laptop, 1.1, 4.18.0-8-generic, x86_64: installed04:18
TJ-OK, oh... hyphen not underscore04:18
TJ-check with "find /lib/modules/$(uname -r)/ -name 'ideapad_laptop.ko' "04:18
TJ-oops!04:18
TJ-check with "find /lib/modules/$(uname -r)/ -name 'ideapad*laptop.ko' "04:18
Gr33nteahttp://paste.ubuntu.com/p/F3rvBsPvNJ/04:20
Gr33nteaits there04:20
TJ-yeah, so hyphen!04:20
TJ-so now you have to manually load it, because of the blacklist you need to use "sudo insmod /lib/modules/$(uname -r)/updates/dkms/ideapad-laptop.ko"04:20
TJ-i hope it doesn't disconnect you! 04:21
TJ-to remove it you can do "sudo modprobe -r ideapad-laptop"04:21
Gr33nteakeeps saying unknown symbol in the middle04:22
Gr33nteacould not insert module unknown symbol in the middle04:22
Gr33nteacould not insert module unknown symbol in the middle04:23
Gr33nteasorry idk why tht posted twice04:23
TJ-oh, darn, that means all the depends are needed :( I think it'd be easier to comment out the blacklist, replace that with a single file so you can easily toggle it on/off04:23
Gr33nteaokay lemme comment it out04:24
TJ-you could try first doing "for m in wmi video sparse-keymap; do sudo modprobe $m; done" 04:24
TJ-then re-run the insmod command . insmod doesn't load dependencies like modprobe does04:25
TJ-I think there's a way to avoid the /etc/modprobe.d/ directory using the -C option, as in "sudo modprobe -C /tmp ideapad-laptop"04:27
Gr33nteaTJ-, It disconnected me as you feared x304:27
Gr33nteathe interesting thing to note is tht04:28
TJ-Gr33ntea: well good, because it loaded the module. now see if it reported with "dmesg | grep DMI"04:28
TJ-I think there's a way to avoid the /etc/modprobe.d/ directory using the -C option, as in "sudo modprobe -C /tmp ideapad-laptop"04:28
TJ-which would allow you to use modprobe not insmod for testing04:28
TJ-and not have to remove the blacklist lines04:28
Gr33nteahttp://paste.ubuntu.com/p/pyjVY2Tbf7/04:29
Gr33nteawell then tht is different04:29
TJ-ahhh, no output!04:30
TJ-the "DMI: LENOVO 81FV/LNVNB161216, BIOS 8JCN44WW 08/13/2018" is from when the kernel started04:30
Gr33nteaoh04:30
TJ-That could be a clue as to why this isn't working04:30
TJ-right, that function is only called if the firmware advertises the name "VPC2004"04:32
TJ-so you'd best capture and upload the ACPI DSDT/SSDT (tables) so I can analyze them04:33
TJ-"sudo apt install acpica-tools"04:33
Gr33nteadone04:34
TJ-then sudo acpidump > /tmp/Y530.acpi04:34
TJ-then you need to find somewhere to upload/share that (binary data) file so I can get it04:34
Gr33nteai can't just cat the .acpi and store the output into pastebinit?04:35
TJ-no, it's binary, and contains several separate tables, each needing to be extracted and converted to source-code separately04:36
Gr33nteaokay gimme a sec ill put it in a dropbox04:37
Gr33nteaTJ-, Sorry my dropbox was full had to delete stuff. https://www.dropbox.com/s/52t7e4f577d52c0/Y530.acpi?dl=004:41
TJ-great, thanks, I'll decompile it now04:43
TJ-darn, "Could not get ACPI tables from dsdt.dat, AE_BAD_HEADER" - I wonder if the tools used by Lenovo are more recent than what I have (20180115)04:48
Gr33nteawhat tools do you use? : o04:59
TJ-acpica-tools - I've set up an 18.10 container, and that seems to be almost working (more recent version)05:08
TJ-right, got it and moved it back to 18.04 host05:10
TJ-well, it declares that ID "Name (_HID, "VPC2004")  // _HID: Hardware ID"05:11
TJ-so, why is that method not getting to the printk05:11
TJ-or maybe it is, but not printing in default mode05:12
TJ-would you like to make a change to the source to save me having to package it up etc05:15
Gr33nteasorry05:18
Gr33nteaI was helping a friend with something05:18
Gr33nteawhatcha need me to change05:18
TJ-change the printk line 1270 in /usr/src/ideapad_laptop-1.1/ideapad-laptop.c so the start of it looks like printk(KERN_NOTICE "DMI: 05:18
TJ-you'll likely need root privs to edit it05:19
TJ-once that is done you'll need to dkms remove/install the module once again05:20
Gr33nteaI do not see a printk there05:23
Gr33nteaand even redownloaded the tar tht u gave05:24
Gr33nteaand there isnt a printk in tht 1 either05:24
TJ-huh! that might explain why yuou didn't see it then!05:24
TJ-let me check05:24
TJ-ok, I've uploaded it again and checked its got the correct file. Download it  http://iam.tj/projects/ubuntu/ideapad_laptop-dkms.tar.gz 05:27
TJ-then extract it: "sudo tar -xvf ideapad_laptop-dkms.tar.gz -C /"05:28
TJ-that has the change in it, which you should confirm05:29
Gr33nteajust confirmed05:29
Gr33nteaquestion i ran the command you posted sudo dkms remove ideapad_laptop/1.1. --all && sudo dkms install ideapad_laptop/1.105:32
TJ-OK, so "sudo dkms remove ideapad_laptop/1.1 --all" and "sudo dkms install ideapad_laptop/1.1"05:32
Gr33nteaAnd it says there are no instances of module05:33
TJ-hmmm, oh, "sudo dkms add ideapad_laptop/1.1" - I'm tired :)05:33
Gr33nteauh05:34
Gr33nteait should be add not install?05:34
Gr33nteacuz i ran tht command05:34
Gr33nteaand it worked05:34
Gr33nteaxD05:34
Gr33nteathe sudo dkms remove ideapad_laptop/1.1 --all" and "sudo dkms install ideapad_laptop/1.105:34
TJ-it should be remove -> add _> install05:35
Gr33nteadone05:36
Gr33nteahttp://paste.ubuntu.com/p/mVrRXqrxsS/05:37
TJ-so now test loading it ... lets try the modprobe trick. After which you'll need to unload the module if it kills wifi. "sudo modprobe -C /tmp ideapad_laptop"  then "sudo modprobe -r ideapad_laptop" then "dmesg | grep DMI"05:37
Gr33nteahttp://paste.ubuntu.com/p/Grfcz7Cmkv/05:38
TJ-no output again :s After the modprobe loading it, use "lsmod | grep idea" to check the module is loaded05:39
Gr33nteaokay brb05:39
Gr33nteahttp://paste.ubuntu.com/p/tdcQDkwYYn/05:41
Gr33nteahttp://paste.ubuntu.com/p/DhxTjtmqG6/05:41
Gr33nteafirst one is lsmod | grep idea05:41
TJ-so, it looks like the code never reaches that point then, which explains why the DMI entry doesn't have any affect, but still doesn't make sense!05:47
TJ-I think we'll have to leave it for now05:47
Gr33nteaTJ-, okay : c05:48
Gr33nteasorry I couldn't be of much help05:48
Gr33nteaand thank you for all the help you've given!05:49
TJ-I think we should add a printk to the entry point of that function, so we know if it is being called at all. if it isn't that means the VPC2004 string isn't matching, which points to a larger problem05:50
Gr33nteaokay one sec05:51
TJ-add this line       printk(KERN_NOTICE, "%s\n", "ideapad_acpi_add()");05:51
TJ-after const char *dmi_vendor, *dmi_version;05:51
TJ-that is around line 125005:52
TJ-then you'll need to do the dkms remove, add, install loop again05:53
Gr33nteano dice05:59
TJ-did you check for this message? the one containing "ideapad"05:59
Gr33nteathis time i did not lemme try it again06:00
TJ-this new message just prints the function name as soon as it enters the function06:00
Gr33nteaoh06:01
Gr33nteatht one you mean06:01
Gr33nteayeah no it didnt print06:01
Gr33nteahttp://paste.ubuntu.com/p/rcYc5d2xQb/06:01
TJ-so, that means that ACPI ID (VPC2004) isn't matching/being found, despite my confirming it is in the ACPI DSDT06:02
Gr33nteawait06:02
TJ-which is weird, but explains why we weren't able to make progress by adding the DMI strings06:03
Gr33nteahttp://paste.ubuntu.com/p/djrzjsmX8Y/06:03
Gr33nteanot wht u want right06:03
Gr33nteadmesg | grep idea06:03
TJ-oh! that's helpful :)06:03
Gr33nteai accidentally spelled it idras the first time06:04
Gr33nteaxD06:04
TJ-oh, I think those messages are from earlier when you were trying to use insmod06:04
Gr33nteaoh yeh06:04
TJ-if you do "dmesg | tail" you should a much later timestamp06:05
Gr33nteajust to make sure i didnt do anything wrong heres wht i had done. i took the tar extracted it to /usr/src removed -> add -> install06:06
Gr33nteathen load module -> stop module -> print dmesg06:06
Gr33nteaand my ideapad.c file has both printks06:07
Gr33nteatht we added06:07
Gr33nteaalso i have to go soon : ( need to wake up in 3 hrs for work06:09
TJ-yeah, we've spent enough time on it!06:10
TJ-I'm having breakfast here 06:10
Gr33nteaxD06:11
Gr33nteau basically didnt sleep all night06:11
Gr33nteaokay if you ever want to continue this i might be on tomorrow around the same time06:11
Gr33nteagood night friend, or i guess good morning06:12
=== caravena_ is now known as caravena
johnjohn101hi, just wanted to know if this is a reported issue.  screen locks and the ubuntu bar is still showing..16:43
=== caravena_ is now known as caravena

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