Canonical Voices

Posts tagged with 'gnu'

albertomilone@gmail.com

Ubuntu 18.04 marked the transition to a new, more granular, packaging of the NVIDIA drivers, which, unfortunately, combined with a change in logind, and with the previous migration from Lightdm to Gdm3, caused (Intel+NVIDIA) hybrid laptops to stop working the way they used to in Ubuntu 16.xx and older.

The following are the main issues experienced by our users:

  • An increase in power consumption when using the power saving profile (i.e. when the discrete GPU is off).
  • The inability to switch between power profiles on log out (thus requiring a reboot).

We have backported a commit to solve the problem with logind, and I have worked on a few changes in gpu-manager, and in the other key components, to improve the experience when using Gdm3.

NOTE: fixes for Lightdm, and for SDDM still need some work, and will be made available in the next update.

Both issues should be fixed in Ubuntu 18.10, and I have backported my work to Ubuntu 18.04, which is now available for testing.

If you run Ubuntu 18.04, own a hybrid laptop with an Intel and an NVIDIA GPU (supported by the 390 NVIDIA driver),  we would love to get your feedback on the updates in Ubuntu 18.04.

If you are interested, head over to the bug report, follow the instructions at the end of the bug description, and let us know about your experience.

Read more
albertomilone@gmail.com

Here’s a short list of the new features concerning hybrid graphics in Ubuntu 14.04:

  • External displays connected to the NVIDIA GPU can now be used through the “nvidia-settings” panel. We used to disable them but this is no longer the case (also there’s a fix pending for LP: #1296020, in case your BIOS provides a fake output)
  • We have a more robust system to detect and enable hybrid graphics, thanks to the new gpu-manager (I’ll write a more technical article with all the details soon).
  • We now fall back on the open Intel driver if any of the required components is missing (e.g. the kernel module was not built for the newly installed kernel, or a key package was accidentally removed).
  • Installing the nvidia or the fglrx driver should allow hybrid graphics to work with no further action required. Switching from a power profile to another can be done using the relevant control panels (either AMD’s or NVIDIA’s), as usual.
  • A direct benefit of using a recent kernel is that tearing on Intel/NVIDIA systems, while still an issue, should be a little reduced.

My special thanks go to Maarten Lankhorst (of Nouveau fame), who helped a lot by providing guidance, testing, and debugging X issues.

Known issues

Instructions

Read more
albertomilone@gmail.com

On Heated Technical Discussions

In the light of the (relatively) recent heated technical discussions on display servers and init systems, I thought I would weigh in on how to handle this kind of discussions which, honestly, I find kind of annoying (at least their “heated” side).

I do not represent my employer in any way and I base the following considerations only on what I deem sensible and respectful behaviour.

Flamewars have always existed (in their different forms) and they will not certainly end today but we can (and should) all avoid them by simply not taking part in them.

Here are some points that I consider the minimum requirements for a civil debate.

1. Mutual Respect

It is never ok to insult others. No matter what they said to upset us, we should always do our best to keep it civil. Usually developers write their responses on their blogs, in mailing lists, chat rooms, and one of the benefits of written language is that, differently from spoken language, you have the time to calm down, think carefully about the message you want to convey, re-read the text and edit out the parts you perhaps wrote out of anger and frustration. Please think twice about what you write, before you send it out.

2. Offending Others

Name-calling is not the only way to be perceived as rude or to hurt other people’s feelings. Let’s face it, if I said that you are not reliable, you change your mind every other day, your project is badly designed, etc. or if I made silly jokes about you and your software, you would not be pleased about my assessment of your work or of your personality. Furthermore please pay attention to the overall tone of what you write. There is always a respectful way to say no or to dismiss other people’s claims. Passive-aggressive behaviour1 should never be an option.

Always ask yourself if what you wrote and how phrased it were 100% appropriate and necessary. Also try to see it from the perspective of the other side. Would you consider it acceptable if others said the same to you?

And no, being rude to the people who have been rude to you will not make you any better than them. Do not let them drag you down to their level.

3. Taking Responsibility

Whatever you said, as an adult, you should take responsibility for it. If you think you are right and that you were respectful (see point 2), stand your ground and do not pay too much attention to hostile responses, as unpleasant as they can be. If you think you crossed the line, then simply put your ego aside, and apologise.

4. Playing the Victim vs Being the Victim

Do not necessarily consider yourself a victim if people react the way they do to what you said. For example, the passive-aggressive are known to see themselves as some kinds of martyrs, innocent victims attacked for no apparent reason. This way they do not have to take responsibility for their actions (see point 3).

If you are not sure as to whether this applies to you or not, go through what you wrote – see point 2 and be honest to yourself about it – and then move on to point 3. Victims do exist but are you really one?

5. Disagreeing

Sometimes it is not possible to come to an agreement. Either side will not do what the other side asked, or even meet halfway. If you feel you have done everything in your power to come to an agreement and it was not enough, then simply give up and leave the discussion. Insulting the other side will not do you (or anybody else) any good. The world will not cease to exist if there is no solution to a discussion, no matter the consequences. After all, we are still talking about software, right?

 

 


  1. Passive-aggressive behavior is the indirect expression of hostility, such as through procrastination, hostile jokes, stubbornness, resentment, sullenness, or deliberate/repeated failure to accomplish requested tasks for which one is (often explicitly) responsible.” (Wikipedia)  

Read more
albertomilone@gmail.com

In this Ubuntu release cycle I worked, among other things, on improving user experience with hybrid systems and proprietary graphics drivers. The aim was to make it easier to enable the discrete card when in need of better performance i.e. when the integrated card wouldn’t be enough.

In 13.10 I focused mainly on enablement, making sure that by installing one extra package together with the driver, users would end up with a fully working system with no additional configuration required on their end.

As for 12.04.3, I backported my work from 13.10 and I also made sure that Jockey (the restricted drivers manager in Precise) detects systems with hybrid graphics, recommends the correct driver – hiding any drivers which may support the card but not in a hybrid graphics context – and installs the extra package when users decide to enable the discrete card. The installation process is very straightforward, however, if you’re still using the old kernel/X stack, Jockey won’t show any drivers. The backported stack from Raring (which comes by default with 12.04.3) is required.

There are some known issues, which will be fixed in a near future.

If you would like to try this work on your system, you can find the instructions here.

 

Read more
albertomilone@gmail.com

In this Ubuntu release cycle I worked, among other things, on improving user experience with hybrid systems and proprietary graphics drivers. The aim was to make it easier to enable the discrete card when in need of better performance i.e. when the integrated card wouldn’t be enough.

In 13.10 I focused mainly on enablement, making sure that by installing one extra package together with the driver, users would end up with a fully working system with no additional configuration required on their end.

As for 12.04.3, I backported my work from 13.10 and I also made sure that Jockey (the restricted drivers manager in Precise) detects systems with hybrid graphics, recommends the correct driver – hiding any drivers which may support the card but not in a hybrid graphics context – and installs the extra package when users decide to enable the discrete card. The installation process is very straightforward, however, if you’re still using the old kernel/X stack, Jockey won’t show any drivers. The backported stack from Raring (which comes by default with 12.04.3) is required.

There are some known issues, which will be fixed in a near future.

If you would like to try this work on your system, you can find the instructions here.

 

Read more
albertomilone@gmail.com

Apparently Android >= 4.1.2 breaks tethering in some cases.

Basically you can connect to your phone but you will get no data whatsoever.

This may be fair (at least from Google’s point of view) if your mobile phone operator doesn’t allow tethering and Google wants to respect that. If, like me, you’re using a virtual operator (such as Coopvoce, which relies on TIM’s network) which clearly allows tethering (it’s written on their website), this new “feature” will break tethering for no reason and I’m not sure if such operators can or will actually do anything to fix the issue on their side.

The main reason I have an Internet connection on my phone is because my ADSL at home has poor upstream bandwidth, therefore (for lack of alternatives) I use my phone’s HSUPA connection to upload stuff for work. Breaking tethering for me means making my life more difficult.

Fortunately, in that bug report in the link above I also found part of the solution which helped me get Wireless tethering. Then I managed to enable USB tethering by myself.

This tutorial will require rooting your phone, which you will do at your own risk and googling how to do it.

Requirements:

  • Grab the Android SDK
  • Make a backup of your data (as unlocking the bootloader will erase everything)
  • Unlock your bootloader
  • Root your phone (install Superuser.apk)
  • Install “Scripts Manager” (SManager)
  • Install a Text editor

Follow these steps:

Connect your phone to your PC using the USB cable

Check your devices and their IP addresses:

(Make sure that tethering is disabled and that your 3G/2G/HSUPA connection is enabled and running)

sudo adb kill-server
sudo adb start-server
adb shell
su
netcfg

Which will give you something like the following:

lo       UP           127.0.0.1/8   0x00000049 00:00:00:00:00:00
ifb0     DOWN           0.0.0.0/0   0x00000082 22:b3:ab:4e:2b:0c
ifb1     DOWN           0.0.0.0/0   0x00000082 6e:67:b2:6f:8d:6c
sit0     DOWN           0.0.0.0/0   0x00000080 00:00:00:00:00:00
ip6tnl0  DOWN           0.0.0.0/0   0x00000080 00:00:00:00:00:00
rmnet0   UP      217.202.140.0/24   0x000010d1 00:00:00:00:00:00
rmnet1   DOWN           0.0.0.0/0   0x00001090 00:00:00:00:00:00
rmnet2   DOWN           0.0.0.0/0   0x00001090 00:00:00:00:00:00
p2p0     DOWN           0.0.0.0/0   0x00001002 a2:0b:ba:21:d1:fe
wlan0    DOWN           0.0.0.0/0   0x00001002 a0:0b:ba:21:d1:fe

In this case the interesting device is “rmnet0” (let’s call it the 3G device). Write down its name and its IP address.

Now enable USB tethering and run “netcfg” again:

lo       UP           127.0.0.1/8   0x00000049 00:00:00:00:00:00
ifb0     DOWN           0.0.0.0/0   0x00000082 22:b3:ab:4e:2b:0c
ifb1     DOWN           0.0.0.0/0   0x00000082 6e:67:b2:6f:8d:6c
sit0     DOWN           0.0.0.0/0   0x00000080 00:00:00:00:00:00
ip6tnl0  DOWN           0.0.0.0/0   0x00000080 00:00:00:00:00:00
rmnet0   UP      217.202.140.0/24   0x000010d1 00:00:00:00:00:00
rmnet1   DOWN           0.0.0.0/0   0x00001090 00:00:00:00:00:00
rmnet2   DOWN           0.0.0.0/0   0x00001090 00:00:00:00:00:00
p2p0     DOWN           0.0.0.0/0   0x00001002 a2:0b:ba:21:d1:fe
wlan0    DOWN           0.0.0.0/0   0x00001002 a0:0b:ba:21:d1:fe
rndis0   UP      192.168.42.129/24  0x00001043 c2:09:33:df:45:64

You will notice the presence of a new device (in this case “rndis0” which is the USB device). Again take note of its name and IP address (which will vary but it’s not a problem).

We can now try to route traffic using iptables.

So, for Wireless tethering (use the name of the 3G device and leave the IP address as it is):

iptables -tnat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet0 -j MASQUERADE

And for USB tethering (use the name of the USB device and use the IP address of the 3G device):

iptables -tnat -A natctrl_nat_POSTROUTING -s 217.202.140.0/24 -o rndis0 -j MASQUERADE

Note: I’m not very familiar with iptables but I’ve found these commands to solve the problem here.

Test tethering using a PC. If it works, then we can save the two lines above in a script.

Open a text editor from your phone and type (or you can write it on your PC and then push it to your phone using adb push):

#!/system/bin/sh
iptables -tnat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet0 -j MASQUERADE
iptables -tnat -A natctrl_nat_POSTROUTING -s 217.202.140.0/24 -o rndis0 -j MASQUERADE

 

Then save the file, open it using SManager and tap on the “Boot” and on the “Su” labels (since we want this to run on boot and it requires root privileges).

Note: Make sure to give SManager root permissions when the Superuser app asks you.

And that’s it, restart your phone and everything should work flawlessly from now on.

Read more
albertomilone@gmail.com

An Indicator for Cryptkeeper

I’ve been very busy with life and work in general and I haven’t blogged for a few months now. I finally get the chance to talk about something I worked on in my spare time.

I use Cryptkeeper to decrypt and mount some encrypted directories that I have in my Ubuntu One space but I noticed that its applet didn’t make use of Ubuntu’s Appindicators. Since the whitelist for old style applets had been removed in Raring, I was left with no way to use Cryptkeeper. For this reason I rolled up my sleeves and I worked on a patch to (optionally) enable support for Appindicators in the program.

open_indicator_edited

The main problem I had to face is the fact that Appindicators don’t support right click gestures, so I had to create an entry in the indicator (labelled “Edit”) to allow users to get information, change passwords or delete encrypted directories. Clicking on that entry pops up a dialog which then hooks into the old dialogs to perform the said operations.

cryptkeeper_edit

I uploaded my work in Saucy and made packages for Precise and Raring available in my PPA.

I hope you enjoy my work!

Read more
albertomilone@gmail.com

My father passed away

On 2 January my father passed away at 63, after a little more than a year fighting (a rather aggressive type of) lung cancer. I won’t go into the details of how it went but let it suffice to say that pain and tears have been our bread and butter.

A little bit of history

My father was an honest and kind man who did everything he could for his family. A big part of who I am today, I owe it to him. Since when I was little he always encouraged me to learn and contributed a lot to my education, ranging from history and science to politics.

He supported my (at the time) crazy idea to pursue my current career (as I graduated in a field other than Computer Science) as he’s always believed in me. My father – an electrical engineer who worked in the world of software development – was more than glad to know that I had developed an interest in programming and supported my early studies. I’ll never forget that time when I was coding my first port of Envy (my first program) to the Python programming language and I was stuck and feeling miserable, almost ready to give up, when he sat down beside me and helped me solve the problem. From that point on, nothing stopped me from learning and from facing any other kind of programming problem, which I always take as a challenge.

The funeral and the support we received

I was really amazed at the warmth of my friends and colleagues, my father’s friends, our relatives and neighbours. Whether through the phone, telegram or in person at the funeral, we felt all the love they feel for us and it was beautiful. We couldn’t have asked for more. I’d like to thank you all.

Conclusions

Despite the tragic conclusion, I can say that I’m a much better and mature man than I was when all this misfortune began. This was my father’s last teaching, how to face your worst fears and how to take care of yourself and of the ones beside you in the face of an adverse destiny. It’s a lesson I’ll never forget.

Read more
albertomilone@gmail.com

SFTP uploads to the Ubuntu archive

Some time ago I had problems using ftp when uploading packages to upload.ubuntu.com (which stalled at about 13% for 100Mb uploads). Somehow sftp seems not to be affected by the problem. Here’s the relevant snippet to use in your ~/.dput.conf:

[ubuntu]
fqdn = upload.ubuntu.com
method = sftp
incoming = ubuntu
login = <YOURUSERNAME>
allow_unsigned_uploads = 0

I’ve found sftp to be much more reliable, at least with my (less than stellar) internet connection.

Read more
Hardik Dalwadi

First i would like to thanks all UDD attendees & Canonical, Ubuntu Community for making UDD successful event. we had around 350 attendees @ Hotel Leela, Grand Ball Room.

So, let me  share some behind the scene pictures.

 

This is how we started @ 1:30 PM, 26th Jnauary, 2011

 

Time to make seprate Ubuntu Cotton bags with T-shirts.

Final Goodies: Notepad, Pens, sticker, Products Sheets, Mavercik T-Shirts and Ubuntu Cotton Bags

 

Finally three containers with all goodies, according to their t-shirts size @ 2:30 PM, 26th January, 2011

Registration Counter @ 7:00 PM, 26th January, 2011

Agenda @ 9:10 PM, 26th January, 2011

UDD Presentation Hall @ 11:00 PM, 26th January, 2011

UDD Demonstration Room @ 3:00 AM 27 January, 2011

It was very interesting and busy day for all, packing bags to preparing demo room, shaping final presentations. We were very excited to see all Ubuntuers on UDD. And, OMG!!! that dream came true. Here is a picture taken 15 minutes before the UDD started. And, I believe Picture Speaks Louder Then The Words, OMG!!! It is!

 

Fronte-Right-Corner: A picture taken 15 minutes before the UDD started.

 

REAR-Right-Corner: A picture taken 15 minutes before the UDD started.

 

Though,  i was busy @ UDD Demonstration Counter, organized by Canonical and OEMs and LOEMs, showing their devices with Ubuntu, so i would not write much about UDD Presentation, later in this blog i will cover UDD Presentation source and community blog, covering whole UDD Presentation  part.  Again coming back to demo part, We demoed Wipro Machines (Netbook, Notebook, Tablet, Desktops), Lenovo All-In-One M90Z with Ubuntu 10.10, Dell Zino and Dell Latitude Netbook with Ubuntu Light. Most of the attendees were interested in getting list of Machine pre-installed with Ubuntu and available in Indian market. And that was one of the common need of all. And we surprised by seeing huge demand for that. In past, i have covered in my blog with picture of some LOEM brand with Ubuntu showcasing in CROMA. I got huge demand from attendees to generate and promote list of LOEMs and OEMs shipping machines with Pre-installed Ubuntu in Indian Consumer / Retail Market. We are already doing this for enterprise and corporates. I am sure i will cover that list in future blog. We had given 1 hour for UDD Demonstration Counter,  combined with UDD Break in UDD Agenda.  But personally,  i was much more  busy during the day  for demonstration đŸ˜‰ Here are few pictures from Demonstration Counter.

UDD Demonstartion Room @ 1:00 PM, 27th January, 2011

UDD Demonstration Counter @ 3:00 PM, 27th January, 2011

Overall it was amazing event. During the day, i had great meeting with Nigel Babu and Sreekanth. Nigel also covered detailed report of UDD. Sreekanth had given nice demo on preparing and running customized Ubuntu AMI on Amazon EC2 Cloud Services. We had given separate counter for community. Thanks a lot Sreekanth.

Finally, Closing keynote  by Prakash thanking  all UDD attendees and Canonical Employee for making UDD successful. Here is a snip from Nigel’s Blog Post.

Closing keynote by Prakash and Thanks to all UDD attendees and Canonical Employee for making UDD successful.

Though, We have finished the UDD, but still we are hearing from attendees. Personally, i got lot of e-Mails from attendees.  There was common request to do it again. And, of-course i will update you more in future. Here few words from one of e-Mail, i received. Personal thanks to Mr. Girish


Dear Hardik,
It was a great experience at Leela palace in Bangalore on Ubuntu Developer Day.
I had very good opportunity to meet many people to from open source.
Please keep on organising such events in India.

My Canonical colleagues also got the similar kind of e-Mails after UDD. It was great satisfaction for us. Here is few links around the web covering UDD, bit commercially, but that is not offensive :).


http://www.mymobile.co.in/index.php/national-news/312-ubuntu-developer-day-counts-over-350-in-attendance

http://www.efytimes.com/e1/57794/fullnews.htm

http://press-releases.techwhack.com/

http://tweetmeme.com/story/3872838340/ubuntu-developer-day-in-india-a-resounding-success-with-over-350-in-attendance

http://friendfeed.com/techwhack/29e6af84/ubuntu-developer-day-in-india-resounding

To going at more commercial part, there was very nice coverage by Beyond Beat, Evening new paper.

I like the title most, i will close this blog with that one | UBUNTU STORY: STAFF OF TWO, LAKHS OF USERS | Big thanks to strong Ubuntu Community and Canonical. Now? Let’s make it billion….

UDD Coverage by Beyond Beat, Evening New Paper of Bangalore

Read more
Hardik Dalwadi

We are happy to announce Ubuntu Developer Day in Bangalore.

What is Ubuntu Developer Day?

Ubuntu Developer Day is the biggest software day in Bangalore this year.
With keynote speeches from various members of the Canonical team, and a
more focused technical delivery, register now to avoid disappointment.

Who should attend?

Engineers and Product Managers at OEMs and ODMs with responsibility or
interest in deploying Ubuntu on new devices and computers.

Where?

Leela Palace Kempinski Hotel
23 Airport Road Bangalore 560008
Tel: 080 25211234

What is the cost?

The event is sponsored by Canonical and is free of charge. Lunch and
refreshments will be provided by Canonical.

How do I register?

Register before January 20th at www.ubuntu.com/ubuntudeveloperday

Update:
Registration closed for Ubuntu Developer Day, Bangalore, Jan 27, 2011.

Read more
Hardik Dalwadi

Hi,

I have to test  Pre-released Netbook with Ubuntu Netbook Remix (9.04), Now it’s known as Ubuntu Netbook Edition, that’s different story. So in hurry i started my download in Firefox. It was fine for me. But suddenly my friend called me to go for 3 Idiots, So i opened www.bookmyshow.com to book the ticket, but found very slow speed due to UNR download.  So i stopped it, booked ticket for 3 idiots, Bingo!!!

But, i have to also resume my old UNR download. Opps!!! When i pressed “Resume” button on Firefox Download Manager, It has thrown some error, i was not bothered about it, because it’s common for me. But this time i was more excited about to solve that problem. Just got the access of /bin/bash in mood of some hacking / shacking ;).

Here is  my  code snap shot”

person@CANONICAL-DESK:~/Downloads$ ls -ltr
total 1462988

-rw——- 1 person person         0 2009-12-27 12:38 ubuntu-9.04-netbook-remix-i386.img
-rw——- 1 person person 249075955 2009-12-27 13:05 ubuntu-9.04-netbook-remix-i386.img.part
person@CANONICAL-DESK:~/Downloads$ mv ubuntu-9.04-netbook-remix-i386.img.part ubuntu-9.04-netbook-remix-i386.img
person@CANONICAL-DESK:~/Downloads$ wget http://releases.ubuntu.com/jaunty/ubuntu-9.04-netbook-remix-i386.img -c
–2009-12-27 13:11:04–  http://releases.ubuntu.com/jaunty/ubuntu-9.04-netbook-remix-i386.img
Resolving releases.ubuntu.com… 91.189.88.32, 2001:6b0:e:2018::173, 2001:7b8:3:37::21:1
Connecting to releases.ubuntu.com|91.189.88.32|:80… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 992837632 (947M), 743761677 (709M) remaining [application/octet-stream]
Saving to: `ubuntu-9.04-netbook-remix-i386.img’

100%[+++++++++=========>] 99,28,37,632 88.2K/s   in 55m 13s

2009-12-27 14:06:19 (219 KB/s) – `ubuntu-9.04-netbook-remix-i386.img’ saved [992837632/992837632]

person@CANONICAL-DESK:~/Downloads$ ^C

I hope you would  have got my so called “Hack / Shack”.  That was so straight, not more then 10 seconds :). Anybody can test it for me, if we restart the machine? Are we able to start the download with same hack? Next lesson for you…

Now, time for 3 Idiots đŸ˜‰

:wq

Hardik Dalwadi

Read more