Change dpi to 144
Use xtrlock instead of slock