Search Results: "cas"

2 July 2006

Jose Carlos Garcia Sogo: Beyond CPU C2 state

Mike Hommey has posted an interesting blog entry about how CPU state for saving power can be affected by modules you have loaded. In this case, C4 processor state can only be reached if no uhci_hcd module is present. If it is, the only state the processor can reach is C2, which will at some extent affect battery life. What seems to me quite interesting is the ability to unbind drivers from devices. Sometimes I wonder how many optimizations that are available in our hardware we are missing because of lack of information.

Mike Hommey: Long live the battery

After playing around with gnome-power-manager so that it can support spicctrl (which is to be done in hal, actually) to be able to adjust LCD brightness according to whether the AC adapter is plugged or not, I wanted to go a bit further in my quest for battery life. To be honest, I was already adjusting the LCD brightness with a custom acpid event script, but it’s still nicer to have it out of the box. Anyway, the main issue I remembered for battery life, apart from LCD backlight and Wi-Fi, is CPU power states. When on battery, the CPU in my laptop can handle 4 such states. From C1 to C4 (According to the acpi docs there’s actually a C0 state, so that’d make 5). But when on battery, the CPU never goes past level C2. I did some basic check a long time ago, by removing modules, and after removing Firewire, PCMCIA, and USB support, the CPU would go in C3 and C4 states. Though this definitely saves battery because it turns off parts of the computer, I wanted to know exactly what was sucking the CPU, and to keep at least USB, that I use more than the rest. After selectively removing the modules, it turns out the uhci_hcd support (USB1) is somehow responsible. Which is sad, because my USB mouse is USB1. But it also turns out there’s always a peripheral connected to the USB1 hub on my laptop. Indeed, the internal bluetooth support, which is activated at the same time as Wi-Fi, is connected internally through USB1. If I turn off Wi-Fi, it disconects the BT USB device. It appears that in this configuration, having uhci_hcd loaded doesn’t have an influence on the CPU. It still reaches C3 and C4 levels. Problem is I don’t want to turn off Wi-Fi. So, with the help of my friend google, I found out that it’s possible to unbind drivers from devices, and successfully unbound the USB port the BT device is connected to, without deactivating all the other (external) ports. The sad thing is that when doing such, it also automagically disables the Wi-Fi device (an ipw2200) IRQ, but modprobing ipw2200 again enables it without enabling the BT device. Next step was to find a way to have this set-up applied automatically at boot-time. I tried to add the following to my udev rules:
ACTION=="add", SUBSYSTEM=="pci", ID=="0000:00:1d.2", ENV UDEV_START ==1, OPTIONS="ignore_device"
which i’d have expected to do what i want, but it doesn’t. I also tried:
ACTION=="add", DRIVER=="uhci_hcd", RUN+="/bin/echo -n 0000:00:1d.2 > /sys/bus/pci/drivers/uhci_hcd/unbind"
which doesn’t work either. But:
ACTION=="add", DRIVER=="uhci_hcd", RUN+="/some/script/containing/the/previous/echo"
does. Well, it does work when you restart udev, but not when you reboot. Unfortunately, the initramfs (built with the initramfs-tools) loads a lot of modules, including USB. Meaning that udev doesn’t load these and doesn’t apply the rules then. Unless I write my own list of modules to load at boot time, initramfs-tools won’t produce a useful initramfs for my case. Yaird, on the other hand, did what I wanted it to do, except that it still lacks support for resuming from suspend-to-disk. In the end, I put a script in /etc/rcS.d. This script unbinds the uhci_hcd driver from the BT device port and re-modprobes ipw2200. I got a bad surprise, though. After a fresh startup, the CPU would be stuck on C2 state again. Remember how the OpenGL performance would drop if I switch to console and back to X ? It also turns out that it also makes the CPU able to reach C3 and C4 states. There seems to be something odd with the radeon driver…

Joey Hess: some day

Lots of interesting stuff today..

NOKUBI Takatsugu: CodeFest 2006 Akihabara

From 1st Jul, I joined with CodeFest 2006 Akihabara, a kind of events like Hackathon, Sprint, or something. It has been broadcasting via PeerCast, so if you want to see it, setting up PeerCast and play with the follow link: http://localhost:7144/pls/4345209C975F5665FA9308FDB163F249?tip=61.197.170.97:7144 . Unfurotunately, I couldn't setup Ogg/Vorbis, Theora, so it is using Windows Media Encoder 9. I regret it.

Evan Prodromou: 13 Messidor CCXIV

Honk honk honk! honk honk honk honk! I guess Portugal just won the quarterfinals against England for the wt:World Cup 2006. We have a huge Portuguese community in Montreal, and the team's victories this year at the Cup and in 2004 for the Euro cup have been a huge source of pride. I'm not a big soccer fan, but I do love the fact that Mtl's cultural communities literally fly the colors, packing the bars and cafes and driving around honking after a win (or even a big goal). Italy, Portugal, Brazil (mostly Portuguese again), France... I even saw some cars with Ukraine flags. It's a cool part of being in such a multiculti city. tags:

Moving Day One of the things that's crazy about being in Montreal in the summer is that there's just too much to do. On any given day, there are just a billion jillion activities and things to do. Around May, the vegetation here just explodes into frenetic growth -- trying to get a full cycle of life in in our small sub-arctic growing season. Quebec's forests are as dense and overgrown as any Amazonian jungle. I think humans' social schedule during the summer is like that, too: trying to get a full year of fun into 4-5 months. Take today, for example. It may be 13 Messidor to us citoyens, but for the people of the North today is 1 July, officially wp:Canada Day. The national holiday of Canada, it's celebrated from Coast to Coast by lots of people who love Canada and want to celebrate their Canadianness. And then there's Quebec. Sure, Montreal has some nice Canada Day events, but there's something furtive about them. Even though somewhere north of 45% of Quebec's population wants to remain in the union, it's still rare to see overt Canada Day celebrations, outside the sponsored events. But for most Quebecois, July 1 is wp:Moving Day -- the day when everyone's lease is up, by government mandate, and those people who are going to move this year go to their new homes. There are moving vans in the street and people queued up at the rental places -- typical time to rent is 2-4 hours. We moved on Moving Day last year to our new, great apartment, and it's nice to be here. This may be the first Moving Day we've been here that no one's asked for help moving. That might say something about the stage of life we're in -- people are buying their own homes and settling down -- and it may say something about our reliability as friends since we had a baby. In any event, here's one Moving Day when any moving I do is on my own. tags:

Jazz There was a Canada Day parade this morning on the other side of town (where the anglophones and federalists live...), but we were too tired to go. So we instead skipped down to Place des Arts to visit the free outdoor parts of the Montreal Jazz Fest. Case in point with Montreal festivals in the summer: it was big, with tons to do, and we were totally unable to deal with doing it. We had some Molson Dry, saw some music playing and Amita June clapped along (she's a great clapper!), then we had quiche and a salmon wrap and some Molson Dry, then Amita June went and played in the kids' area, then we saw some more music, then some samba, then klesmer, then off to home. Good time, but tiring. I feel obliged to enjoy Montreal summers, but sometimes it's just too much. tags:

France Honk honk! Honk honk honk honk honk!! So I guess France just beat Brazil to get into the semi-finals. Is it actually allowed to have a World Cup without Brazil in the semi-finals? I thought it was a rule. Niko, my French Friend, was complaining last week that the French fans were just loitering around the bars on St. Laurent rather than being boisterous like other fans did when their teams won. Not today: on our way back from Jazz Fest, we saw a huge tow truck with a gigantic tricolor draped from the back trolling up and down Mont Royal. Kind of a bummer for the Brazilians -- and the rest of us who enjoy Brazil fans' antics. But I guess that's the way it goes sometimes. tags:

Fancruft I don't remember what I was looking up on Wikipedia, but there was some fancruft on the page and I ended up wasting half an hour reading Simpsons articles. I want my half hour back, Wikipedia! tags:

Marilynne Robinson When I was a freshman in college, one of my favorite instructors, Michael Near, assigned "Housekeeping" by Marilynne Robinson as an English 1B assignment. I found the story haunting and beautiful and altogether excellent. I tried digging up more of her work at the UC Berkeley main library, and all I could get was "Mother Country" -- her indictment of stratified society and nuclear energy. In it, she promised never to write fiction again. So I was stunned to read a quote by Robinson in Shannon's Livejournal. Wow. Apparently wp:Marilynne Robinson has written a book of essays in 1998 and a Pulitzer-Prize-winning novel in 2005. Incredible. Why was I not informed? I've got some reading to do. tags:

Full-text feed So I've got a full-text feed now. Hopefully it works for those folks with Planet aggregators or whatever, and especially for Joey Hess, who hates the stuff below the fold. Some corrections that I made to older posts seem to have fudged up some planets, notably Planet Debian, for which I'm kind of bummed. But I think I've fixed the problem, and this should be the only time it happens. Unfortunately, since I write a lot, it means a lot of scrolling. tags:

1 July 2006

Jeff Licquia: New Job

Now that the right people have been told, I can make it public: as of January, I’ll be a full-time developer for the Free Standards Group, producers of the LSB. This is, perhaps, one of the most difficult job decisions I’ve had to make. In every other case where I’ve changed jobs so far, I’ve done so only when it becomes clear that the old job isn’t going anywhere: either by going under, getting radically reorganized, treating me poorly, or otherwise being a dead end. None of that is true here. I still believe in what Progeny is doing. The co-workers are superb (yes, even that one), and management has always treated me well, even in difficult circumstances. But sometimes, opportunities are too good to pass up. I think that the next year or two will be pivotal to the future of free standards, and I’ll be in a unique position to influence the direction those standards go. Plus, I’ll be able to work with another group of brilliant and talented people, with the hope that some of that brilliance and talent will rub off. I’m also positive about working primarily from home. So, you can expect more blogging (he says, a month after his last post!), especially about standards in the free software world. I’ve created a new category for that topic, in case you’re interested in following just that conversation.

Jeff Licquia: Yes, the LSB Has Value

Ulrich Drepper slams on the LSB, suggesting that binary compatibility is a red herring and that the LSB is incompetent. I think it best to respond to the substance of the allegations here. To do that, you’ve got to filter out the ad hominem slurs (”…they buy into the advertisement of the people who have monetary benefits from the existence of the specification, they don’t do any research, and they generally don’t understand ABI issues.”), ego (”After they added the 100+ reports I sent and those others sent the test suite is a somewhat good reflection of who a Linux implementation should behave…”), and contradictions (even though the LSB people are incompetent, their experience shows that their goal is unattainable; one would think you need to try with competent people before deciding that something is impossible). So what are you left with? As a final point, I would look at Drepper’s recommendations for a replacement of the LSB: source specifications, and identical binaries whenever ABI compatibility is an issue. He doesn’t answer the question of whose binaries those should be, probably because he’s happy with the current de facto answer: the binaries provided by his employer, Red Hat. No doubt he would prefer a world without competition, but should the rest of us? (Seen via Slashdot.)

Evan Prodromou: 12 Messidor CCXIV

I got up this morning with hundreds of messages in my inbox, and re-sorted them to the correct folders. My monkeyplexer program, which sorts stuff into the correct folders automatically, has been running out of control. I developed it for a version of CRM114 that's now totally obsolete, but the file formats and interfaces have all changed. I've taken a poke at bringing the program up to speed with later versions, but it's just not bad enough to deal with. Also, the horrendous interface of crm114 is just too ugly to imagine. Blech. Instead, I took the opportunity to unsubscribe from about 25 mailing lists that I no longer read and that go from my inbox to an overstuffed folder to a trashcan two weeks later. Hopefully this will take some of the pressure off of the monkeyplexer until I get time to either a) move to something easier and bayesian like ifile or b) upgrade monkeyplexer. tags:

My mom, the rattlesnake magnet So, my Mom got bit by a rattlesnake yesterday morning. She'd taken a baby car seat out of my Dad's car the night before to put it in her car, but it was too late and dark so she left it in the driveway to install in the morning. Apparently when she tried to install it the next day, a rattler had snuck in there to sleep and nailed her on the arm. (My folks live on a pretty big lot in wt:Los Altos Hills, and there's a lot of wildlife, of the fuzzy and also scaly nature.) She got to Stanford Hospital just fine, and she's had 4 rounds of anti-venom. She's hurting but they think it's going to be all right. The strange part of the story is that this is the second time she's been bitten by a snake. I'm not sure how she's survived the process twice, but I'm pretty amazed that it happened twice at all. Waiting for news, here in Montreal... a little nerve wracking. tags:
 

Peer-to-peer, broadcast style I read through TechCrunch that three major studios will be distributing shows via P2P in the coming months. That's all well and good, but if it's a for-pay system (content costs $0.99 and up), why should you have to contribute any bandwidth into a peer-to-peer system? For a dollar a pop, these should be easy, high-performance HTTP downloads, not shaggy and unreliable p2p stuff. I contribute my upstream bandwidth to Free Software and Open Content, not to re-forwarding something I had to pay for. tags:

Stimulus and response Thanks to Matt for forwarding this excellent summary of blogs. tags:

While on the subject Our home mail server went on the fritz while we were in California, and it was a serious pain in the keester. I had to redirect all our mail redirects from our home server (bad.dynu.ca) to Gmail. The home server's back in business now, but I hadn't changed the email stuff back yet... and today I decided not to. I've re-pointed mail for our business, Wikitravel, and personal domains to the old Wikitravel server at iWeb (the same server this site runs on). I think that's probably the best thing for us to have a "home" server that's not at home; we really need to be able to get to our stuff from the road. It's been good so far; most of the domains were pretty easy. It's been the ones I'd forgotten about that are a hassle. Like, say, bad-people-of-the-future.san-francisco.ca.us. Damn, man. The geographical .us domains used to be one of my favorite things. Now they're not so much. tags:

Second wife So, I guess I'd finished some work yesterday, and I was feeling pretty good about it, because after dinner I decided to spend a little illicit "me" time. And with me, that usually ends up being a game. I'd heard a lot about Second Life, and I was especially impressed by some of the important appearances in the world, like Larry Lessig and Mia Garlick of Creative Commons. But I also have a terribly addictive personality, which is exemplified by the large pile of coffee cups on my desk, but also by the way I go completely crazy over video games. I just don't play them that often any more, because they suck up huge parts of my life, and in the end I've just moved a few bits around. So I try to steer clear. So the fact that there doesn't seem to be much to do in SL -- no level-ups, no territory to conquer -- is kind of an advantage for it. So I gave SL a try last night. I had to use one of our laptops, since the Linux alpha of their client doesn't work on Ubuntu (as far as I can tell). I'll say this: it's awfully nice for graphics, and the world is incredibly built out. But I felt a little bit like a hobo in Vegas -- everything was about casinos and strip clubs and huge fancy houses and cars and planes that I couldn't afford. SL is pretty famous for charging for every little thing, and building an impressive dual-world economy. It seems to have worked pretty well -- there's lots of chasing after the lucre in SL. It was awfully good on the eye-candy, but I felt like Neo in the Matrix: all I could see was dollar signs behind the colors. When I told Maj this morning why I was up till 2AM last night, she gave me a serious scowl. I'm pretty sure my SL days are over... mostly. After all, there's a theory that MMORGs are the reason why we haven't met any aliens -- that any sufficiently advanced culture is going to get sucked into pretend worlds like SL and not go out and explore the universe. tags:

30 June 2006

Ross Burton: Camera Whore

ross@flashheart ~/Pictures/Photos/Incoming/guadec
$ du; ls   wc -l
692M    .
292
Daniel "Camera Whore" Stone stole my camera and wouldn't give it back. Two things to note: 1) I predict Daniel will have an EOS 350D within the month, and 2) when at GUADEC, bring a battery charger and twice as much CF as you think you'd need, just in case. Daniel was only stopped due to the battery dying. I should blog more about GUADEC but in my usual style I'll leave it until I can't recall anything. Instead I'll just mention my favourite quote of the week: GUADEC has been homo-erotic and informative. But mostly homo-erotic. Thanks, if I recall correctly, to Fiona. Personally, I have no idea what she is talking about.

29 June 2006

Amaya Rodrigo: That painful time of the year again

I did my taxes yesterday, two days before the final deadline. I do that every year. I wait until the very last moment, until I get so stressed that it is painful. So the next year all I remember is the painful experience and then postpone it more and more and try to avoid it until the very last day again. Rinse and repeat. It gets worse every year. I also stupidly refuse any help that is offered to me when there's still plenty of time, and then I will want it desperately when there's only one day left, but I am too embarrassed to ask for help then because, $DEITY forbid, THEY (yes, whoever "they" is, the evil "they", the ones that would be all after me if I was paranoid) erm, yes, because THEY would find out that I procastinate.

Anyway, yesterday I was on the verge of a break down, that's why I missed the Gay Pride day blog post, when Bego called me, came upstairs with her laptop (with a very helpful windows partition), which broke completely after installing the tax software, so we migrated downstairs to Carlos' office, where i could finally calculate my taxes, and using my SSL certificate, send the outcome of my calculations to the tax office, online. It all was pretty much smooth once you completely give up all hope and stick to windows and explorer.

Carlos was shocked that I was demanding a windows machine, that's when he realized the situation was pretty desperate, as the Linux client has proven not to work at all. Jose even took pics of me using windows. I hope they don't make it to Slashdot.

Special thanks to H ctor, who in the midst of a huge headache, ended up fixing Bego's fucked up Windows partition.

28 June 2006

Aigars Mahinovs: For those who care about flamewars!

This MUST stop now! If every DD would express his opinion and anger and frustration on the thread, then it would be the mother of all flamewars and it will suck the life out of all other Debian lists and stop the development outright. Flames shall not pass! In case someone did not get the joke - it is fun. Join the fun. Display all the traditional flamewar tactics and frases in absurd and hyper overstated ways. Let off some steam in a fictional debate about nothing. Have a bit of fun. It is curiose after all.

Wouter Verhelst: Folds.

I hate folds, too. In fact, it's the sole reason why I just removed the blogs of Laurent Gatto an Frederik Rousseau from Planet Grep, a Planet dedicated to Belgian FLOSS people. In my arrogant opinion, a planet should be more than just a bunch of links. If I want a bunch of links, I'll just read debian-www for a few days; there'll be plenty of online casino or so owners asking for us to link back to them in that time. And rest assured, these people have a bunch of links. Instead, a planet such as Planet Debian, Planet Grep, or, say, Planet Gnome should be an easy read. A thing one can read top-to-bottom. Without having to follow links to be able to just read whatever people are talking about. And, the claim that folds help people ignore irrelevant stuff is just plain nonsense. If there's a post that I'm not interested in, I'm perfectly capable of using the scrollbar, thanks. It's no big deal; I do that for quite a number of blog posts already. Especially those suckers that come with folds.

Carlos Villegas: Script for checking LSB compliance (SoC 2006)

Based on a script by Petter Reinholdtsen to check the correct init script order, I've made a script to check for LSB compliance. It is available on the project webpage. The script checks for the existance of each of the LSB headers and considers 4 main output cases:
+ No LSB headers (when the START INIT INFO header is not found)
+ Basic LSB compliance (when Should-Start, Should-Stop and the Description have no arguments.
+ Full LSB compliance (when all headers have arguments)
+ Partial compliance (in the other cases).
Besides, it sends to to STDERR comments on missing headers or missing arguments in them.

John Goerzen: Mario Cuomo against Ronald Reagan

I finally have episode 3 of my podcast Sound of History online.

Episodes 1 and 2 both had two speeches each, and one of those speeches in each episode was from Ronald Reagan. So, for episode 3, I selected Mario Cuomo's address to the 1984 Democratic National Convention. Quite an interesting listen.

It was quite interesting to hear how the rhetoric 20 years go, from both sides, is quite similar to today's rhetoric.

Anthony Towns: On being DPL

It’s almost the end of financial year in Australia, so what better time to take stock? I’m actually a bit surprised at just how much I need to do that – I knew being DPL would involve some new challenges, but it’s barely two months in and I’m already just about in shock. Guess it serves me right for putting “increasing Debian’s tempo” in my platform…
The two other roles I’ve been in that I would have expected to prepare me more have been Debian release manager, and secretary of Linux Australia. They’re both similar in a way – the release manager does a lot of cat herding within Debian, and has to make some calls that will leave people aggrieved; and Linux Australia has some contact with the press, and some reasonably serious projects going on. So a few issues were completely expected: a random initial slashdotting, a press report, an interview or two, some requests for quotes in articles and press releases, or ongoing opposition and arguments from dedicated Debianites who don’t happen to agree with me on some decision. There were other things that were new and interesting though not really surprising. The leader@ mail address turned out to have just as much spam as I expected, though also some unexpected interesting stuff too, including my first ever personally addressed open letter – in this case by Keith Curtis who also wrote the 10,000 bugs away from World Domination article that got slashdotted a while back. A tidbit:
Everyone agrees that Ubuntu couldn’t exist without Debian, but I also believe that Debian is better setup to take Ubuntu where it needs to go. There are hints that the Ubuntu team feels like they brought a pork chop suit to a lions den. Ubuntu’s user base and development team is growing exponentially, but I believe they could get there much faster with more of Debian’s help.
Keith also forwarded an open letter he’d written to Mark Shuttleworth, and had some interesting comments on the whole Java thing. As well, I suddenly started receiving SPI board mail, as Debian’s advisory representative to the SPI board, and started getting a couple of requests for authorising expenditures (Debian UK reimbursing Matthew Garrett for travel costs to the Gnome Advisory Board meeting in 2005) or providing a Debian representative for a meeting or joining the Google Summer of Code. And then there were the cool things I knew absolutely nothing about, like the excellent news Christian Perrier passed on about the launch of Dzongkha Linux, featured in news reports from Bhutan, India, and Australia. Of course, I completely expected that all this would overload me a bit, and I’d end up getting distracted from what I wanted to do, and not being able to keep up with stuff other people wanted me to do. To help with this a little, I delegated Steve McIntyre as, essentially, a co-DPL, and he’s been working on a few things, including the now successful switch of irc.debian.org over to OFTC, and another fun little endeavour that I won’t spoil just yet. Things started getting a bit weird as I was preparing to travel off to debconf in Mexico – with some frustrated comments from damog and Marga and Gunnar, which was odd coming from the conference organisers themselves; and independently the reinflamation of some old tension on the debian-installer team. That got compounded at debconf itself, with the controversy over the inclusion of Sun Java in non-free extending not just to the lists, but an article in LWN (with a followup) as well as numerous other places around the net. That issue came to something of a climax when John Goerzen (with whom I’ve had some entertaining disagreements in the past) questioned whether SPI had been sufficiently involved in the decision (“I am becoming increasingly concerned at the unilateral method in which you and/or the archive maintainers have taken this decision.”), to which I responded fairly curtly to defend the way Debian makes decisions (“If SPI wish to withdraw from their relationship with Debian, then that’s entirely possible to arrange. I don’t think it’s at all proper that you try to obtain veto power of Debian’s activities as conducted by the duly authorised members of that organisation.”). Nothing’s really news there – flamewar on Debian lists between influential project members? Next thing you know the sun will rise in the East every morning, and then where will we be? What’s not so normal is those flamewars getting front page coverage on slashdot, or noted in an article on distrowatch. As far as Debian’s concerned, we had a couple more rounds, both in public and on the developer only -private list, then moved onto actually getting the legal advice John wanted. That’s actually still pending, and the debate has pretty much abated while that’s going on. And meanwhile, Wouter Verhelst, Manoj Srivastava, and others have started a much more productive look at Debian’s relationship with SPI and similar organisations, which has continued on to a draft of a constitutional amendment. But there was more stress and chaos at debconf than just the Java stuff, but what’s really impressive is the way people ended up dealing with it. Take damog for example:
Just as Tore said: This is the best DebConf ever. Isn’t it great? I started really enjoying this DebConf once I stopped worrying about bullshit, once I stopped worrying about senseless things and started to really give a shit about almost anything. Why do I need Gunnar to tell my girlfriend Ana, “you picked up the irresponsible one”? Why do I have to worry about the DPL giving a shit or not on the Latinamerican Debian community, even after being invited to meet the guys or to attend our BOF? […] I enjoy people here, thanks to all the organization cabal, thanks for your effort and your time on this. […] But after leaving all of this behind, I think Ana and me are having a great time sharing time with friends around us (the friends, los cuates, we are here for).
After seeing that post, and figuring out who damog actually was when he gave a lightning talk towards the end of the conference, we had a chance to briefly chat about what was going on – somehow I hadn’t taken in the invitation to attend the BOF, and had been told it was all in Spanish anyway, so hadn’t gone; meanwhile they’ve been thinking about holding a Debian miniconf in Latin America somewhere and wanting to know what sort of support they can get from the rest of the project – particularly moral support rather than financial, at that. Hopefully we’ll see news on that score in the coming months. But really, damog was right in the first place anyway: why care if the DPL supports you or not? Debian’s about everyone doing what they think is good and worthwhile, and that combining to produce something great – it’s not about what some guy who got six votes more than the next guy happens to think is important. But support is important, whether it comes in the form of a DPL saying “good idea!”, or something else. Gunnar’s response to the latter, eg:
Debian is love. After my scream for help a couple of days ago, and after a mountain of hard work, things are just running. No, we are not -by far- free of incidents, and it would be foolish to expect it to be so, but we are working nicely. And by the way, thank you, I have been receiving the largest amount of hugs ever, and believe me, each of them has been important. […] Thank you all, folks. I am in Cristoph Berg’s talk about reworking NM - And this comes very good to wrap up my post. Debian is much, much more than technical work. It is a social club. I love this social club. Just sitting here makes long months of work really worth it. A great hug back to you all!
And in the end we got quite a bit out of debconf6, for example more movement on the forthcoming release, improvements on i18n stuff, a new publicity project, movement on updating python, amongst other things. Who knows if the next debconf will manage to be anywhere near as much of an experience, but at least we’ll find out fairly soon where it’s going to be (though that process isn’t without hiccups of its own). Post debconf, there’s also been a notable influx of trolling going on too; with the most obvious and odious example being the insane, anonymously-posted prayers for a female developer’s death. Fortunately those have mostly been ignored as the mindless spam they are, though one might argue that Marcela Tiznado’s acceptance as a DD on her birthday, and the inclusion of women.debian.org in the official debian.org namespace are a more appropriate response to that sort of harassment than any sort of direct reply anyway. Not all our problems have conveniently been resolved right now, of course, the difficulties related to the installer team I alluded to above are ongoing, and at the moment a really good solution is still eluding us, though development continues anyway. And then, of course, there’s more to come – half the point of posting this is so I can stop worrying about all the stuff that’s been and gone, and get on with interesting things like the next point release, and the various other projects that I’ve let languish for the past few weeks.

27 June 2006

Michael Janssen: The Continuing Saga of the ML-2010

I upgraded my CUPS to 1.2 today, and had a bit of trouble with getting the ML-2010 to work with it. Given my other issues with this printer, I thought I would expound on how I fixed yet another problem with this semi-supported printer.
The Samsung printing uses the linuxprint system, which uses a configuration file in an XML format which isn't specified. In the default install for the Samsung linux tool, it is installed in /usr/local/linuxprinter/linuxprint.cfg with a link from /etc/linuxprint.cfg to it. My file, after being setup, looks like this:

<?xml version="1.0"?>
<linux root="/usr/local/linuxprinter" system="cups">
  <option name="ghostscript" value="/usr/bin/gs-esp"/>
  <option name="address" value="localhost"/>
  <option name="port" value="631"/>
  <option name="lpr" value="/usr/bin/lp"/>
  <option name="llpr-default-printer" value="lp"/>
  <printer ppd="ppd/C/ML-2010spl2.ppd" queue="lp">
    <option name="Resolution" value="600"/>
    <option name="PageSize" value="Letter"/>
    <option name="InputSlot" value="AUTO"/>
    <option name="MediaType" value="PRINTER"/>
    <option name="JCLJamrecovery" value="RWJOff"/>
    <option name="JCLEconomode" value="PRINTERDEFAULT"/>
  </printer>
</linux>
 
I discovered the hard way that if this file isn't there, the filter which is installed (ppmtospl2) doesn't work that well. In this case, the printer queue is lp. If this file is setup correctly, you can setup CUPS yourself, using the ppd file which is referenced in the linuxprint.cfg file. If you have lost your linuxprint.cfg, I suspect you can just modify the above with the correct ppd - the Samsung package has many of them for different printers. If you don't want to go that way, you can rerun the /usr/local/linuxprinter/bin/linux-config as before, but you will have to open your CUPS 1.2 server wide open while you are configuring it so that it can add the printer. Also, I had to have a printer existing in the CUPS 1.2 server in order to have the linux-config program work at all. I solved this by just adding a virtual pdf printer (using the package cups-pdf). Even when you get linux-config to add the printer, it will not add it correctly for CUPS 1.2 - the device is incorrect - so you will have to reconfigure it via the web interface and give it the ppd which is in the directory anyway.
At least I have my printer back again.

Enrico Zini: MyODBC, one row at a time

In case you were wondering how to get the query result one row at a time with the MySQL driver of UnixODBC, it's very easy. You just need to:
SQLSetStmtAttr(stm, SQL_ATTR_CURSOR_SCROLLABLE, (SQLPOINTER)SQL_NONSCROLLABLE, SQL_IS_INTEGER);
But not, of course, before having set the DSN Options field to 1048576 (with the ODBCConfig tool or something similar). It wasn't too hard to find out after reading most of the MySQL driver source code. And qalculate has a nice useful built-in shift operation.

26 June 2006

Wouter Verhelst: Comment spams

The nice thing about an NIH comment post thing is that you can change it if people start to abuse it. I was starting to get more and more comment spams. Some spammer obviously must have taken a look at my comment submission form, and written some code to post his junk there. Even though they made a little mistake that would make it very easy to identify their posts (URL-encoded the data in some field where it was not necessary, and indeed would mean that the post would not be visible had I approved it), I didn't feel like adding much code to special-case one particular spammer. So instead, I changed my comment form to rename a particular field, and would return a 403-style rather empty page with a remark of Sod off, spammer if the field is filled in. When I start to receive spam again, changing the code to do the same thing once more is pretty easy. It's been a few weeks now. And I didn't have to change anything about my comment submission policy, like some other people had to do. Isn't that nice? :-)

25 June 2006

Mike Hommey: OpenGL performance and the importance of configuration

Until recently, I wasn’t really bothered by the poor OpenGL performance of my laptop. Though it has a Radeon Mobility 9200, the OpenGL “experience” was really bad. But since I was not using GL enabled applications, that was not an issue. Then, I tried Google Earth and thought “well, it’s slow, but it’s huge, I don’t know, maybe it’s normal”. A few days later I heard about neverball and gave it a try. It was even slower than Google Earth, and that seemed pretty hard to believe this time. Thanks to clues from people on #d-d, I figured out I didn’t have the libgl1-mesa-dri package installed. Quite simple to know if you are in the same case : first, grep “Direct rendering” in your X.org log file to be sure DRI is enabled on the server side. Then check for “direct rendering” in glxinfo’s output to know if it’s enabled on the client side. If not, try to apt-get install libgl1-mesa-dri. Trying neverball again was delightful: the game was playable. I thought I was done with my OpenGL settings until yesterday, when, for some reason, I read the X.org log and noticed AGP mode was 1x. I didn’t know exactly about nowadays, but I was pretty sure 4x was reached at some point, and that the chip in my laptop might support it. My friend google helped me finding something about “xorg.conf radeon 9200 mobility agp”, and gave me hints about three parameters to add to the xorg.conf file that might improve GL performance:

Option "AGPMode" "8"
Option "AGPFastWrite" "on"
Option "EnablePageFlip" "true"
Glxgears is not a benchmark, but still, it helps to make self comparisons. Before: ~260fps. After: ~1350fps. WAW ! Now Google Earth is really fast. Though I have a strange bug which appears whenever an X window (popup, balloon help, etc.) gets on top of the 3D frame: only the rightmost part appears… on the left. It appears on neverball, on glxgears, on Google Earth, but NOT on foobillard… moving or resizing the window usually fixes the display. Update: When switching to console and back to X, the glxgear performance gets back to ~260fps… Update 2: It seems my “before” score is not as bad as claimed. It’s actually ~950fps. Still a good improvement, though. The reason why i got ~260fps is that i almost never reboot my laptop nor restart X, and hibernate instead of shutting down the system. Which means I’m in the switched back from console case most of the time. Update 3: Thanks to Robert Hart for pointing to bug #363995. The patch from there works perfectly \o/. (If you can’t wait and want a patched .deb, send me a mail)

24 June 2006

Jose Carlos Garcia Sogo: AverTV DVB-T USB2 "Volar"

I buyed yesterday this device, which is a nice DVB-T USB stick, which also includes a RF antenna, though no remote control. I buyed it because it claimed Linux support in the box, and when I was visiting their webpage to see how was that support I was glad to discover that they were pointing to LinuxTV as having support for this device. Of course, I followed the given procedure in linked pages and... nothing. Modules are not aware of this device at all. So I statarted looking at the code and it seems that there is no support for this card yet. But as Avermedia was telling so straight that it has support, I tried to change the code to add the new ID of this card, just in case it could work with the same module than older models. After recompiling and installing the card is detected, but firmware cannot be loaded, as it seems to be incompatible with this device. Looking a bit closer, I found in Avermedia website precompiled modules for FC3, FC4, Mandriva and SUSE, bt not for Debian (even Sarge). They seem to be Avermedia propietary modules, but I should check if they are based upon another GPL module out there, as they are not giving away the source code. So, basically, I have a new DVB-T device that I cannot use though manufacturer claims that it has Linux support (which in part is true).

Next.

Previous.