English Community

Linux Operating SystemsUbuntu
All Forum Topics
Options

17 Posts

06-13-2019

Australia

40 Signins

165 Page Views

  • Posts: 17
  • Registered: ‎06-13-2019
  • Location: Australia
  • Views: 165
  • Message 101 of 159

Re: Linux on Ideapad D330

2019-06-22, 0:16 AM

 

I am using xubuntu 19.04 and my grub has gfxmode 800x1280 and nomodeset.  ( aside - I have also added fbcon=rotate:1 to grub so that I can see the boot messages in landscape ) .  Hope this helps.

 


Hi Ron, I can't get the "fbcon=rotate:1" option in grub to work for me. Could you please give me a code snippet of where in the grub.cfg file you added this for it to work? Thanks.

 

Dennis

Reply
Options

4 Posts

06-16-2019

Australia

10 Signins

63 Page Views

  • Posts: 4
  • Registered: ‎06-16-2019
  • Location: Australia
  • Views: 63
  • Message 102 of 159

Re: Linux on Ideapad D330

2019-06-22, 2:51 AM

my /etc/default/grub has the following...

GRUB_CMDLINE_LINUX_DEFAULT="noquiet nosplash nomodeset fbcon=rotate:1"
GRUB_GFXPAYLOAD_LINUX="800x1280"
GRUB_GFXMODE=1280x800

after running update-grub, my grub.cfg looks like this....

 

set linux_gfx_mode=800x1280
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7ca5de08-956a-411f-ac32-2a30419014a8' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  df21117d-d038-4ca3-8f7a-ada54bc0880b
        else
          search --no-floppy --fs-uuid --set=root df21117d-d038-4ca3-8f7a-ada54bc0880b
        fi
        linux   /vmlinuz-5.0.0-16-generic root=/dev/mapper/vg_d330-root_01 ro  noquiet nosplash nomodeset fbcon=rotate:1
        initrd  /initrd.img-5.0.0-16-generic
}

 

 

Reply
Options

34 Posts

12-18-2018

Germany

66 Signins

465 Page Views

  • Posts: 34
  • Registered: ‎12-18-2018
  • Location: Germany
  • Views: 465
  • Message 103 of 159

Re: Linux on Ideapad D330

2019-06-22, 5:52 AM

for the touchscreen orientation the xinput coordinate tranformation matrix can be used.

get your touchscreen id/name

xinput -list

mine lokks like this

[felix@felix-laptop Schreibtisch]$ xinput -list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ HAILUCK CO.,LTD Lenovo HID Device Touchpad	id=14	[slave  pointer  (2)]
⎜   ↳ Goodix Capacitive TouchScreen           	id=16	[slave  pointer  (2)]
⎜   ↳ M585/M590 Mouse                         	id=23	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Integrated Camera 5M: Integrate         	id=9	[slave  keyboard (3)]
    ↳ Integrated Camera 2M: Integrate         	id=10	[slave  keyboard (3)]
    ↳ HAILUCK CO.,LTD Lenovo HID Device       	id=11	[slave  keyboard (3)]
    ↳ HAILUCK CO.,LTD Lenovo HID Device System Control	id=12	[slave  keyboard (3)]
    ↳ HAILUCK CO.,LTD Lenovo HID Device Consumer Control	id=13	[slave  keyboard (3)]
    ↳ HAILUCK CO.,LTD Lenovo HID Device Wireless Radio Control	id=15	[slave  keyboard (3)]
    ↳ Ideapad extra buttons                   	id=17	[slave  keyboard (3)]
    ↳ Intel HID events                        	id=18	[slave  keyboard (3)]
    ↳ Intel HID 5 button array                	id=19	[slave  keyboard (3)]
    ↳ AT Raw Set 2 keyboard                   	id=20	[slave  keyboard (3)]
    ↳ Goodix Capacitive TouchScreen           	id=21	[slave  keyboard (3)]
    ↳ M585/M590 Keyboard                      	id=22	[slave  keyboard (3)]

In my case the name is Goodix Capacitice TouchScreen with id=16.

I looked up the orientation coordinates https://wiki.ubuntu.com/X/InputCoordinateTransformation

My scrren is rotated to the right so my command has to look like this

xinput set-prop "16" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1

The touchscreen shold now be aligned with your screen. This worked for me on Ubuntu, Manjaro, Linux Mint and Antergos

Reply
Options

4 Posts

06-16-2019

Australia

10 Signins

63 Page Views

  • Posts: 4
  • Registered: ‎06-16-2019
  • Location: Australia
  • Views: 63
  • Message 104 of 159

Re: Linux on Ideapad D330

2019-06-22, 11:22 AM

My scrren is rotated to the right so my command has to look like this

xinput set-prop "16" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1

The touchscreen shold now be aligned with your screen. This worked for me on Ubuntu, Manjaro, Linux Mint and Antergos


I looked up the orientation coordinates https://wiki.ubuntu.com/X/InputCoordinateTransformation

Thanks.  My id was different, so I used the name instead

 

xinput set-prop 'pointer:Goodix Capacitive TouchScreen' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

 

 

This is what I added to my xorg.conf to make it permanent 

 

Section "InputClass"
Identifier "D330 rotate touchscreen"
MatchProduct "Goodix Capacitive TouchScreen"
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection 

 

 

 

 

Reply
Options

17 Posts

06-13-2019

Australia

40 Signins

165 Page Views

  • Posts: 17
  • Registered: ‎06-13-2019
  • Location: Australia
  • Views: 165
  • Message 105 of 159

Re: Linux on Ideapad D330

2019-06-23, 2:14 AM

Hi Ron, thanks for your touch screen settings worked perfect! I still couldn't get the "fbcon=rotate:1" option in grub to work at all but I am using an older v4.19.32 kernel and not v5 as you seem to be. Also I am using my own directly edited grub2 files and not following the recommended method so that may have something to do with it too.

Reply
Options

9 Posts

03-08-2019

Philippines

17 Signins

85 Page Views

  • Posts: 9
  • Registered: ‎03-08-2019
  • Location: Philippines
  • Views: 85
  • Message 106 of 159

Re: Linux on Ideapad D330

2019-06-23, 3:28 AM

Hello all. Sharing with you my work-around grub and Xorg config. For grub, I added the following entry:

	menuentry 'Arch Linux, with Linux linux (nomodeset)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-9384b308-178e-4048-ba4c-3ae1be38eaa7' {
		load_video
		set gfxpayload=800x1280x32
		insmod gzio
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  9384b308-178e-4048-ba4c-3ae1be38eaa7
		else
		  search --no-floppy --fs-uuid --set=root 9384b308-178e-4048-ba4c-3ae1be38eaa7
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=9384b308-178e-4048-ba4c-3ae1be38eaa7 rw  quiet pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier nomodeset video=efifb fbcon=rotate:1 acpi_backlight=native
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux.img
	}

The following snippets are the relevant modifications:

 

set gfxpayload=800x1280x32
nomodeset video=efifb fbcon=rotate:1 

 Notice I'm using efifb. This should preserve display states already set by the EFI. nomodeset should disable i915.

 

For Xorg,

# cat /etc/X11/xorg.conf.d/10-fbdev.conf 
Section "Device"
	Identifier "fbdev"
	Driver "fbdev"
	Option "fbdev" "/dev/fb0"
	Option "Rotate" "CW"
EndSection

You could combine this with the touchscreen X11 mappings shown by the previous posts.

 

I'm still looking for a way to make backlight control work, which is by default controlled by i915. I'll post an update once I found the work-around.

Reply
Options

4 Posts

06-23-2019

Hungary

5 Signins

28 Page Views

  • Posts: 4
  • Registered: ‎06-23-2019
  • Location: Hungary
  • Views: 28
  • Message 107 of 159

Re: Linux on Ideapad D330

2019-06-23, 21:24 PM

Hey all!

 

I have been almost entirely succesfull, and managed to install Ubuntu 19.04 on the D330. The only thing not working is the sound, and also there's a bug (as already discussed before) that I get a black screen with backlit when booting (but this can be skipped by making it sleep with the power button pressed shortly and wake it up again and I get the screen back), and then I also need to disconnect and reconnect the keyboard for it to work. The first one disturbes me a lot more than the second one, but I believe they are connected in some way, because:

-when I somehow happen to boot without the blackscreen, sound is fine and working perfectly

-when I add nomodeset, I defenetly won't get the described bug, and sond works

I think it could be some driver conflict with the audio and video driver.

Also, I'd not want to use nomodeset, since with that everything works just fine (screen rotation, touchscreen with no errors when rotating, brightness settings...)

 

Somebody having the same issue?

Reply
Options

34 Posts

12-18-2018

Germany

66 Signins

465 Page Views

  • Posts: 34
  • Registered: ‎12-18-2018
  • Location: Germany
  • Views: 465
  • Message 108 of 159

Re: Linux on Ideapad D330

2019-06-23, 23:47 PM

On Zorin, which is based on Ubuntu, i had a sound bug too. After a fresh restart everything works fine but if i change the user oder put the laptop into standby the built in speaker sound device disappears and the only device left is the headphone jack. It never really bothered me because i booted straight to the desktop without having to use the standby button trick. Maybe the issues are related since you have to have to go to standby.

Are you loged in automatically? Does your headphone jack work?

Reply
Options

17 Posts

06-13-2019

Australia

40 Signins

165 Page Views

  • Posts: 17
  • Registered: ‎06-13-2019
  • Location: Australia
  • Views: 165
  • Message 109 of 159

Re: Linux on Ideapad D330

2019-06-24, 2:53 AM

Hi all, I am running Fatdog64-802 (the latest build) and pretty much everything works perfectly on my HD (1280x800) with the  grub and xorg mods (special one I modded) apart from auto screen rotation & brightness (which I am working on). Even the touch screen works perfectly all running out of RAM in less than 500mb and it can be loaded from any partition and file system after installing grub2. You can save your changes and data in either a save file or directly on any partition and file system too.

 

It's super responsive & fast unlike Win10 which I also am dual booting without any mods to the stock partitions, as I need it for work.

 

If anyone wants to try it let me know and I will give you all of the config details and files to make it work.

 

Thanks again to everyone who contributed and made it possible for a Linux newby like me!

Reply
Options

4 Posts

06-23-2019

Hungary

5 Signins

28 Page Views

  • Posts: 4
  • Registered: ‎06-23-2019
  • Location: Hungary
  • Views: 28
  • Message 110 of 159

Re: Linux on Ideapad D330

2019-06-24, 8:08 AM

Thank you for your answer! I managed to solve the problem! 

The key was to set up automatic login. This way the bug goes away, and I don't need to suspend the device. And as it turned out, suspending was the reason of my sound disappearing (also from headphone jack). So from now on I'm only going to lock the screen or turn off the device instead of suspending. I also need to change the behaviour when I close or open the lid, so that it doesn't do anything, and won't ruin sound for me. 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms